Disable clang's -Wunreachable-code warning

This commit is contained in:
Nigel Tao committed 2020-04-03 21:57:49 +11:00
1 parent ecd3285567
commit 1a1f36ce13
4 files changed
+35 -43

No files matched your search

-20
View File
@@ -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.