mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-28 07:44:06 +01:00
Chore: eliminates compiler warnings
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
#define LUALIB_API LUA_API
|
#define LUALIB_API LUA_API
|
||||||
#define LUAMOD_API LUA_API
|
#define LUAMOD_API LUA_API
|
||||||
|
|
||||||
|
// Note: `#pragma GCC diagnostic push` is intentionally omitted here.
|
||||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -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
|
// 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
|
// 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.
|
// 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"
|
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||||
|
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
|
|
||||||
#include "common/library.h"
|
#include "common/library.h"
|
||||||
|
|
||||||
extern struct FFZlibData {
|
extern struct FFZlibData {
|
||||||
|
|||||||
Reference in New Issue
Block a user