]> granicus.if.org Git - libexpat/commitdiff
internal.h: Fix UNUSED_P for GCC 3.3 (fixes #288)
authorSebastian Pipping <sebastian@pipping.org>
Sat, 20 Jul 2019 14:42:21 +0000 (16:42 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Sat, 20 Jul 2019 14:42:21 +0000 (16:42 +0200)
expat/lib/internal.h

index dc4ef0c7e2588c2d79c68b6fd62e805f7fbff77a..5732d55e338c7f281db6772f0855bb5f4c7664b0 100644 (file)
 #endif
 
 #ifndef UNUSED_P
-# ifdef __GNUC__
+# if defined(__GNUC__) && (__GNUC__ >= 4)
 #  define UNUSED_P(p) UNUSED_ ## p __attribute__((__unused__))
 # else
 #  define UNUSED_P(p) UNUSED_ ## p