mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 16:47:28 +01:00
Commit release/c/wuffs-unsupported-snapshot.c
This commit is contained in:
1 parent
09d892c55a
commit
d5de66772c
1 file changed
+2
-12
@@ -11,9 +11,9 @@
|
|||||||
// Wuffs' C code is generated automatically, not hand-written. These warnings'
|
// Wuffs' C code is generated automatically, not hand-written. These warnings'
|
||||||
// costs outweigh the benefits.
|
// costs outweigh the benefits.
|
||||||
//
|
//
|
||||||
// The "elif defined(__clang__)" isn't redundant. While vanilla clang defines
|
// The "|| defined(__clang__)" isn't redundant. While vanilla clang defines
|
||||||
// __GNUC__, clang-cl (which mimics MSVC's cl.exe) does not.
|
// __GNUC__, clang-cl (which mimics MSVC's cl.exe) does not.
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
||||||
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||||
@@ -23,16 +23,6 @@
|
|||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
||||||
#endif
|
#endif
|
||||||
#elif defined(__clang__)
|
|
||||||
#pragma clang diagnostic push
|
|
||||||
#pragma clang diagnostic ignored "-Wimplicit-fallthrough"
|
|
||||||
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
|
||||||
#pragma clang diagnostic ignored "-Wunreachable-code"
|
|
||||||
#pragma clang diagnostic ignored "-Wunused-function"
|
|
||||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
|
||||||
#if defined(__cplusplus)
|
|
||||||
#pragma clang 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