summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-09-26 17:40:32 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-09-26 17:51:00 -0700
commit88ec82664a95715bf6958462ad810e2da077394c (patch)
treea3ce1a544576b42b91b703f0826a62901489c288
parent38c72bc8abf651cbc0ebffcc0d0da10d0bcaf7a5 (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>
-rw-r--r--xmore.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/xmore.c b/xmore.c
index 7d508ed..0d86e49 100644
--- a/xmore.c
+++ b/xmore.c
@@ -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;