mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Restrict "ignore -Wold-style-cast" to C++
This commit is contained in:
1 parent
c1c8ccbaf2
commit
543ac9af28
2 files changed
+6
-2
No files matched your search
@@ -170,10 +170,12 @@ const grPragmaPush = `
|
|||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||||
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
|
||||||
#pragma GCC diagnostic ignored "-Wunreachable-code"
|
#pragma GCC diagnostic ignored "-Wunreachable-code"
|
||||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
|
#if defined(__cplusplus)
|
||||||
|
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
`
|
`
|
||||||
|
|||||||
@@ -13,10 +13,12 @@
|
|||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||||
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
|
||||||
#pragma GCC diagnostic ignored "-Wunreachable-code"
|
#pragma GCC diagnostic ignored "-Wunreachable-code"
|
||||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||||
|
#if defined(__cplusplus)
|
||||||
|
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Copyright 2017 The Wuffs Authors.
|
// Copyright 2017 The Wuffs Authors.
|
||||||
|
|||||||
Reference in new issue
Block a user