Chore: eliminates compiler warnings

This commit is contained in:
Carter Li
2026-10-11 23:49:07 +08:00
parent 1e8b4eb974
commit 29567e1674
2 changed files with 3 additions and 3 deletions
+1
View File
@@ -13,6 +13,7 @@
#define LUALIB_API LUA_API
#define LUAMOD_API LUA_API
// Note: `#pragma GCC diagnostic push` is intentionally omitted here.
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
+2 -3
View File
@@ -44,13 +44,12 @@ static inline const char* ffZlibLoad([[maybe_unused]] FFZlibGroup group) {
// that a given translation unit may not call at all. Silenced for the include only: the
// pragma is popped right after, so the rest of the file -- and the rest of the translation
// unit that includes this header -- still reports unused functions.
#pragma GCC diagnostic push
// Note: `#pragma GCC diagnostic push` is intentionally omitted here.
#pragma GCC diagnostic ignored "-Wunused-function"
#include <zlib.h>
#pragma GCC diagnostic pop
#include "common/library.h"
extern struct FFZlibData {