Module: Mesa
Branch: master
Commit: 7a57acad8757a9ffb0d8fac9865b6a02ef50de6d
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7a57acad8757a9ffb0d8fac9865b6a02ef50de6d

Author: James Park <[email protected]>
Date:   Tue Dec  1 11:12:56 2020 -0800

util: Disable [[fallthrough]] for C17

[[fallthrough]] is not a C17 feature, and MSVC does not support it.

Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Reviewed-by: Tony Wasserka <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7862>

---

 src/util/compiler.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/compiler.h b/src/util/compiler.h
index 686f41acfe4..da602cfa33d 100644
--- a/src/util/compiler.h
+++ b/src/util/compiler.h
@@ -76,8 +76,8 @@
 #  define __has_attribute(x) 0
 #endif
 
-#if __cplusplus >= 201703L || __STDC_VERSION__ >= 201710L
-/* Standard C++17/C18 attribute */
+#if __cplusplus >= 201703L || __STDC_VERSION__ > 201710L
+/* Standard C++17/C23 attribute */
 #define FALLTHROUGH [[fallthrough]]
 #elif __has_attribute(fallthrough)
 /* Non-standard but supported by at least gcc and clang */

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to