diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-09-26 17:40:32 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-09-26 17:51:00 -0700 |
commit | 88ec82664a95715bf6958462ad810e2da077394c (patch) | |
tree | a3ce1a544576b42b91b703f0826a62901489c288 /xmore.c | |
parent | 38c72bc8abf651cbc0ebffcc0d0da10d0bcaf7a5 (diff) |
Handle clang -Wunused-macros warnings
xmore.c:55:9: warning: macro is not used [-Wunused-macros]
#define Error(x) { printf x ; exit(EXIT_FAILURE); }
^
xmore.c:56:9: warning: macro is not used [-Wunused-macros]
#define Assertion(expr, msg) { if (!(expr)) { Error msg } }
^
xmore.c:53:9: warning: macro is not used [-Wunused-macros]
#define NULLSTR(x) (((x)!=NULL)?(x):(""))
^
xmore.c:57:9: warning: macro is not used [-Wunused-macros]
#define Log(x) { if (userOptions.verbose) printf x; }
^
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xmore.c')
-rw-r--r-- | xmore.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -49,13 +49,6 @@ in this Software without prior written authorization from The Open Group. #include <stdio.h> #include <limits.h> -/* Turn a NULL pointer string into an empty string */ -#define NULLSTR(x) (((x)!=NULL)?(x):("")) - -#define Error(x) { printf x ; exit(EXIT_FAILURE); } -#define Assertion(expr, msg) { if (!(expr)) { Error msg } } -#define Log(x) { if (userOptions.verbose) printf x; } - /* Global vars */ static Widget toplevel = NULL; static Widget text = NULL; |