diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-01-04 23:55:20 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-04 23:55:20 +0100 |
commit | 07fda3fa04f9acf9b548c99446155c6dcfce1d2d (patch) | |
tree | 9a987039ae8b339c3202066b5bb8d6348533037e | |
parent | 9ea608bf9e969890e7da9417259c282e4b3f0323 (diff) |
Don’t issue ‘unused-function’ warnings on GCC
-rw-r--r-- | cbs.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -37,6 +37,11 @@ #ifndef C_BUILD_SYSTEM_H #define C_BUILD_SYSTEM_H +#ifdef __GNUC__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wunused-function" +#endif + /* Assert that the user is building for a supported platform. The only portable way to check for POSIX is to validate that unistd.h exists. This is only possible without compiler extensions in C23 (although some compilers support @@ -875,4 +880,8 @@ tpwait(tpool_t *tp) #endif /* CBS_PTHREAD */ +#ifdef __GNUC__ +# pragma GCC diagnostic pop +#endif + #endif /* !C_BUILD_SYSTEM_H */ |