mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
snippet: avoid some -Wunused-function warnings
This commit is contained in:
1 parent
fbb65550ac
commit
f31d952b62
3 files changed
+30
No files matched your search
@@ -33,6 +33,11 @@
|
|||||||
#ifndef BASIC_HANDSUM_DECODE_INCLUDE_GUARD
|
#ifndef BASIC_HANDSUM_DECODE_INCLUDE_GUARD
|
||||||
#define BASIC_HANDSUM_DECODE_INCLUDE_GUARD
|
#define BASIC_HANDSUM_DECODE_INCLUDE_GUARD
|
||||||
|
|
||||||
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(BASIC_HANDSUM_DECODE_CONFIG__STATIC_FUNCTIONS)
|
#if defined(BASIC_HANDSUM_DECODE_CONFIG__STATIC_FUNCTIONS)
|
||||||
#define BASIC_HANDSUM_DECODE__MAYBE_STATIC static
|
#define BASIC_HANDSUM_DECODE__MAYBE_STATIC static
|
||||||
#else
|
#else
|
||||||
@@ -483,4 +488,9 @@ basic_handsum_decode__decode(basic_handsum_decode__pixel_buffer* dst,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // BASIC_HANDSUM_DECODE_IMPLEMENTATION
|
#endif // BASIC_HANDSUM_DECODE_IMPLEMENTATION
|
||||||
|
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // BASIC_HANDSUM_DECODE_INCLUDE_GUARD
|
#endif // BASIC_HANDSUM_DECODE_INCLUDE_GUARD
|
||||||
@@ -27,6 +27,11 @@
|
|||||||
#ifndef PARSE_COLOR_INCLUDE_GUARD
|
#ifndef PARSE_COLOR_INCLUDE_GUARD
|
||||||
#define PARSE_COLOR_INCLUDE_GUARD
|
#define PARSE_COLOR_INCLUDE_GUARD
|
||||||
|
|
||||||
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(PARSE_COLOR_CONFIG__STATIC_FUNCTIONS)
|
#if defined(PARSE_COLOR_CONFIG__STATIC_FUNCTIONS)
|
||||||
#define PARSE_COLOR__MAYBE_STATIC static
|
#define PARSE_COLOR__MAYBE_STATIC static
|
||||||
#else
|
#else
|
||||||
@@ -200,4 +205,9 @@ parse_color(const char* s_ptr, size_t s_len) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // PARSE_COLOR_IMPLEMENTATION
|
#endif // PARSE_COLOR_IMPLEMENTATION
|
||||||
|
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // PARSE_COLOR_INCLUDE_GUARD
|
#endif // PARSE_COLOR_INCLUDE_GUARD
|
||||||
@@ -29,6 +29,11 @@
|
|||||||
#ifndef UNCOMPNG_INCLUDE_GUARD
|
#ifndef UNCOMPNG_INCLUDE_GUARD
|
||||||
#define UNCOMPNG_INCLUDE_GUARD
|
#define UNCOMPNG_INCLUDE_GUARD
|
||||||
|
|
||||||
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(UNCOMPNG_CONFIG__STATIC_FUNCTIONS)
|
#if defined(UNCOMPNG_CONFIG__STATIC_FUNCTIONS)
|
||||||
#define UNCOMPNG__MAYBE_STATIC static
|
#define UNCOMPNG__MAYBE_STATIC static
|
||||||
#else
|
#else
|
||||||
@@ -926,4 +931,9 @@ uncompng__encode_apng_frame(int (*write_func)(void* context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // UNCOMPNG_IMPLEMENTATION
|
#endif // UNCOMPNG_IMPLEMENTATION
|
||||||
|
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // UNCOMPNG_INCLUDE_GUARD
|
#endif // UNCOMPNG_INCLUDE_GUARD
|
||||||
Reference in new issue
Block a user