summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-21 11:26:54 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-01-21 13:57:28 -0800
commitab0228c679932b4f5439e9304db8c6a1b8f50909 (patch)
tree9a171dbcdfaa3ad47dbee73bd94e095f2fa525b8
parent1d8fbc4184089beaded2fc1d7bf8bbd23d3e923a (diff)
Use _CONST_X_STRING to make libXt declare String as const char *
Drops number of -Wdiscarded-qualifiers warnings from 489 to 276 from gcc 13.2 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--msg.c4
-rw-r--r--xmh.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/msg.c b/msg.c
index e4244cd..cfb723d 100644
--- a/msg.c
+++ b/msg.c
@@ -28,12 +28,12 @@
/* msgs.c -- handle operations on messages. */
-#include <X11/Xaw/Cardinals.h>
-
#include "xmh.h"
#include "tocintrnl.h"
#include "actions.h"
+#include <X11/Xaw/Cardinals.h>
+
static int SetScrn(Msg, Scrn, Boolean, XtCallbackList, XtCallbackList);
/* Function Name: SetEditable
diff --git a/xmh.h b/xmh.h
index f605b49..2d6836e 100644
--- a/xmh.h
+++ b/xmh.h
@@ -31,6 +31,7 @@
#include "config.h"
#define XMH_VERSION PACKAGE_STRING
+#define _CONST_X_STRING
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>