aboutsummaryrefslogtreecommitdiff
path: root/compat/nedmalloc/nedmalloc.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-09-06 10:38:49 -0700
committerJunio C Hamano <gitster@pobox.com>2024-09-06 10:38:50 -0700
commit5ecd5fa58b3315d6bdd6ef9218c7ae442782bc5d (patch)
tree36dad0e60cd1a4e69fd2ebbadb8694a6b73a7b70 /compat/nedmalloc/nedmalloc.c
parent6dcb2db0fa20cbad961ebdc8414ce4f9246d8c2b (diff)
parenta61bc8879eaade17eccec2a22693501480843db1 (diff)
downloadgit-5ecd5fa58b3315d6bdd6ef9218c7ae442782bc5d.tar.xz
Merge branch 'jk/unused-parameters'
Make our codebase compilable with the -Werror=unused-parameter option. * jk/unused-parameters: CodingGuidelines: mention -Wunused-parameter and UNUSED config.mak.dev: enable -Wunused-parameter by default compat: mark unused parameters in win32/mingw functions compat: disable -Wunused-parameter in win32/headless.c compat: disable -Wunused-parameter in 3rd-party code t-reftable-readwrite: mark unused parameter in callback function gc: mark unused config parameter in virtual functions
Diffstat (limited to 'compat/nedmalloc/nedmalloc.c')
-rw-r--r--compat/nedmalloc/nedmalloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat/nedmalloc/nedmalloc.c b/compat/nedmalloc/nedmalloc.c
index 2c0ace7075..145255da43 100644
--- a/compat/nedmalloc/nedmalloc.c
+++ b/compat/nedmalloc/nedmalloc.c
@@ -31,6 +31,8 @@ DEALINGS IN THE SOFTWARE.
/*#pragma optimize("a", on)*/
#endif
+#pragma GCC diagnostic ignored "-Wunused-parameter"
+
/*#define FULLSANITYCHECKS*/
#include "nedmalloc.h"