diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-21 11:26:54 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-21 13:57:28 -0800 |
commit | ab0228c679932b4f5439e9304db8c6a1b8f50909 (patch) | |
tree | 9a171dbcdfaa3ad47dbee73bd94e095f2fa525b8 | |
parent | 1d8fbc4184089beaded2fc1d7bf8bbd23d3e923a (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.c | 4 | ||||
-rw-r--r-- | xmh.h | 1 |
2 files changed, 3 insertions, 2 deletions
@@ -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 @@ -31,6 +31,7 @@ #include "config.h" #define XMH_VERSION PACKAGE_STRING +#define _CONST_X_STRING #include <X11/Intrinsic.h> #include <X11/StringDefs.h> |