Skip to content

Commit 277064b

Browse files
committed
Merge branch 'cb/reftable-unused-portability-fix'
Build fix. * cb/reftable-unused-portability-fix: reftable: make REFTABLE_UNUSED C99 compatible
2 parents fcfe606 + f1228cd commit 277064b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reftable/basics.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
#include "system.h"
1717
#include "reftable-basics.h"
1818

19+
#ifdef __GNUC__
1920
#define REFTABLE_UNUSED __attribute__((__unused__))
21+
#else
22+
#define REFTABLE_UNUSED
23+
#endif
2024

2125
/*
2226
* Initialize the buffer such that it is ready for use. This is equivalent to

0 commit comments

Comments
 (0)