diff options
Diffstat (limited to 'libglusterfs/src/globals.h')
-rw-r--r-- | libglusterfs/src/globals.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libglusterfs/src/globals.h b/libglusterfs/src/globals.h index 7003351ab55..5f4af861318 100644 --- a/libglusterfs/src/globals.h +++ b/libglusterfs/src/globals.h @@ -20,6 +20,13 @@ #ifndef _GLOBALS_H #define _GLOBALS_H +/* TODO: remove this 'pragma' by fixing the root cause of warnings */ +#if defined(__GNUC__) +#if __GNUC__ >= 4 +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#endif + #define GF_DEFAULT_BASE_PORT 24007 /* This corresponds to the max 16 number of group IDs that are sent through an |