We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e2f724 commit 4239aedCopy full SHA for 4239aed
include/pybind11/pybind11.h
@@ -10,7 +10,7 @@
10
11
#pragma once
12
13
-#if defined(__GNUG__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
+#if defined(__CUDACC__) || (defined(__GNUC__) && (__GNUC__ == 7 || __GNUC__ == 8))
14
# pragma GCC diagnostic push
15
# pragma GCC diagnostic ignored "-Wattributes"
16
#endif
@@ -2384,6 +2384,6 @@ PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)
2384
# pragma GCC diagnostic pop // -Wnoexcept-type
2385
2386
2387
2388
# pragma GCC diagnostic pop
2389
0 commit comments