summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgcc/config/gthr-vxworks.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libgcc/config/gthr-vxworks.h b/libgcc/config/gthr-vxworks.h
index 9861a11511a..31c4b9f2557 100644
--- a/libgcc/config/gthr-vxworks.h
+++ b/libgcc/config/gthr-vxworks.h
@@ -38,8 +38,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include <_vxworks-versions.h>
/* Some VxWorks headers profusely use typedefs of a pointer to a function with
- undefined number of arguments. */
+ undefined number of arguments. Arrange to ignore declaration errors in C++,
+ which is achievable by ignoring Wstrict-prototypes diagnostics even when the
+ option is registered as only valid for c/objc. */
#pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wpragmas"
#pragma GCC diagnostic ignored "-Wstrict-prototypes"
#include <semLib.h>
#pragma GCC diagnostic pop