mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 16:47:28 +01:00
Disable clang's -Wunreachable-code warning
This commit is contained in:
1 parent
ecd3285567
commit
1a1f36ce13
4 files changed
+35
-43
No files matched your search
@@ -30,12 +30,6 @@
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
// GCC does not warn for unused *static inline* functions, but clang does.
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -50,19 +44,9 @@ extern "C" {
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
// WUFFS C HEADER ENDS HERE.
|
||||
#ifdef WUFFS_IMPLEMENTATION
|
||||
|
||||
// GCC does not warn for unused *static inline* functions, but clang does.
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -131,10 +115,6 @@ const uint64_t wuffs_base__low_bits_mask__u64[65] = {
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif // WUFFS_IMPLEMENTATION
|
||||
|
||||
// !! WUFFS MONOLITHIC RELEASE DISCARDS EVERYTHING BELOW.
|
||||
|
||||
Reference in new issue
Block a user