We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27e0ad0 commit 16eacbcCopy full SHA for 16eacbc
include/pybind11/detail/common.h
@@ -944,7 +944,7 @@ inline void silence_unused_warnings(Args &&...) {}
944
#if defined(__GNUG__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
945
# define PYBIND11_WORKAROUND_INCORRECT_ALL_GCC_UNUSED_BUT_SET_PARAMETER(...) \
946
detail::silence_unused_warnings(__VA_ARGS__)
947
-# if defined(__GNUC__) && __GNUC__ <= 2
+# if defined(__GNUC__) && __GNUC__ <= 5 // 4 is certain, 5 unknown, 6 is certain
948
# define PYBIND11_WORKAROUND_INCORRECT_OLD_GCC_UNUSED_BUT_SET_PARAMETER(...) \
949
950
# else
0 commit comments