summaryrefslogtreecommitdiff
path: root/xsm.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2021-11-28 10:38:43 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2021-11-30 17:52:59 +0000
commit4bf092e35a92b4fb613f4fee01d5ab26a612ddb6 (patch)
tree093d2ef94b6f58d58de8191784aca276540526dc /xsm.h
parentc7a7f81b18f8594aceaa9c32217753ef935dac2d (diff)
Use _CONST_X_STRING to make libXt declare String as const char *
Clears 5 -Wincompatible-pointer-types warnings and 18 -Wdiscarded-qualifiers warnings from gcc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xsm.h')
-rw-r--r--xsm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xsm.h b/xsm.h
index e780355..1ee74e8 100644
--- a/xsm.h
+++ b/xsm.h
@@ -33,6 +33,8 @@ in this Software without prior written authorization from The Open Group.
# include "config.h"
#endif
+#define _CONST_X_STRING
+
#include <X11/Xos.h>
#include <X11/Xfuncs.h>