Skip to content

Commit f9e1d34

Browse files
committed
Reintroduced __unused macro
1 parent bd9e906 commit f9e1d34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/postgresql_stubs.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2525
*/
2626

27+
#if __GNUC__ >= 3
28+
# define __unused __attribute__ ((unused))
29+
#else
30+
# define __unused
31+
#endif
32+
2733
#if PG_OCAML_MAJOR_VERSION > 8 \
2834
|| ( PG_OCAML_MAJOR_VERSION >= 8 && PG_OCAML_MINOR_VERSION >= 2)
2935
# define PG_OCAML_8_2

0 commit comments

Comments
 (0)