diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-06-21 21:11:43 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-06-21 21:40:56 -0700 |
commit | 09f4907e4ab4ba3654de829bf3ac2a4a02bb9ef4 (patch) | |
tree | 590fe306ec018eab886679d395edf2f98092043a | |
parent | 473959141641b6779e6ff3c3c5b6ef326073bcd4 (diff) |
Fix GCC_UNUSED definition to actually work with -Wunused-parameter
Silences warnings of:
charset.c: In function ‘IdentityRecode’:
charset.c:42:51: warning: unused parameter ‘self’ [-Wunused-parameter]
charset.c: In function ‘NullReverse’:
charset.c:84:26: warning: unused parameter ‘n’ [-Wunused-parameter]
charset.c:84:59: warning: unused parameter ‘self’ [-Wunused-parameter]
other.c: In function ‘mapping_utf8’:
other.c:108:44: warning: unused parameter ‘s’ [-Wunused-parameter]
other.c: In function ‘reverse_utf8’:
other.c:114:44: warning: unused parameter ‘s’ [-Wunused-parameter]
luit.c: In function ‘sigwinchHandler’:
luit.c:463:21: warning: unused parameter ‘sig’ [-Wunused-parameter]
luit.c: In function ‘sigchldHandler’:
luit.c:470:20: warning: unused parameter ‘sig’ [-Wunused-parameter]
luit.c: In function ‘parent’:
luit.c:657:12: warning: unused parameter ‘pid’ [-Wunused-parameter]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | other.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -26,7 +26,11 @@ THE SOFTWARE. #include "config.h" /* include this, for self-contained headers */ #ifndef GCC_UNUSED -#define GCC_UNUSED /* ARGSUSED */ +# if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205) +# define GCC_UNUSED __attribute__((__unused__)) +# else +# define GCC_UNUSED /* ARGSUSED */ +# endif #endif #include <X11/fonts/fontenc.h> |