This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: compiler.h: fix compilation with clang + std=c++98 + glibcxx
Author:  Rosen Penev <ros...@gmail.com>
Date:    Tue Apr 28 21:06:26 2020 -0700

It seems clang does not like these attributes in c++98 mode.

Signed-off-by: Rosen Penev <ros...@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 include/compiler.h | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=ca3afee1ce741a92d27ba7ad98a50727eaf4ece4
diff --git a/include/compiler.h b/include/compiler.h
index 53d9b7ec4dee..5ad54f41920b 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -1,14 +1,17 @@
-#ifdef __cplusplus
-
 #ifdef _LIBCPP_VERSION
 #define fallthrough _LIBCPP_FALLTHROUGH()
 #else
 
+#if __cplusplus >= 201103L
+
 #ifdef __clang__
 #define fallthrough [[clang::fallthrough]]
 #else
 #define fallthrough [[gnu::fallthrough]]
-#endif
+#endif // __clang__
+
+#else
+#define fallthrough ((void)0)
 
-#endif
-#endif
+#endif // __cplusplus
+#endif // _LIBCPP_VERSION

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to