We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15cbc94 commit 9f97471Copy full SHA for 9f97471
include/pybind11/detail/common.h
@@ -943,7 +943,7 @@ inline void silence_unused_warnings(Args &&...) {}
943
#if defined(__GNUG__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
944
# define PYBIND11_WORKAROUND_INCORRECT_ALL_GCC_UNUSED_BUT_SET_PARAMETER(...) \
945
detail::silence_unused_warnings(__VA_ARGS__)
946
-# if defined(__GNUC__) && __GNUC__ <= 2
+# if defined(__GNUC__) && __GNUC__ <= 5 // 4 is certain, 5 unknown, 6 is certain
947
# define PYBIND11_WORKAROUND_INCORRECT_OLD_GCC_UNUSED_BUT_SET_PARAMETER(...) \
948
949
# else
0 commit comments