aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-05-30 11:59:15 -0700
committerJunio C Hamano <gitster@pobox.com>2025-05-30 11:59:15 -0700
commit277064b5e757bfac41a3d7422c641b1fd2d8a272 (patch)
tree17a02fc128f649659408892992f8c346c389247d
parentfcfe60668e05ffde2610bfef9045797618c145ac (diff)
parentf1228cd12c129a7e4da317e1d21741a3ec26e07e (diff)
downloadgit-277064b5e757bfac41a3d7422c641b1fd2d8a272.tar.gz
Merge branch 'cb/reftable-unused-portability-fix'
Build fix. * cb/reftable-unused-portability-fix: reftable: make REFTABLE_UNUSED C99 compatible
-rw-r--r--reftable/basics.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/reftable/basics.h b/reftable/basics.h
index d8888c1262..7d22f96261 100644
--- a/reftable/basics.h
+++ b/reftable/basics.h
@@ -16,7 +16,11 @@
#include "system.h"
#include "reftable-basics.h"
+#ifdef __GNUC__
#define REFTABLE_UNUSED __attribute__((__unused__))
+#else
+#define REFTABLE_UNUSED
+#endif
/*
* Initialize the buffer such that it is ready for use. This is equivalent to