diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-05-30 11:59:15 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-05-30 11:59:15 -0700 |
| commit | 277064b5e757bfac41a3d7422c641b1fd2d8a272 (patch) | |
| tree | 17a02fc128f649659408892992f8c346c389247d | |
| parent | Merge branch 'master' of https://github.com/j6t/git-gui (diff) | |
| parent | reftable: make REFTABLE_UNUSED C99 compatible (diff) | |
| download | git-277064b5e757bfac41a3d7422c641b1fd2d8a272.tar.gz git-277064b5e757bfac41a3d7422c641b1fd2d8a272.zip | |
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.h | 4 |
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 |
