summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-12-05 15:01:42 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-12-08 12:37:18 -0800
commit5f875c8a6bc12d47ad655ba820031bb917f321c0 (patch)
tree618f7e348e894adedd082eab7d189c3766225366
parent6dbcbb55951efb25af2e38034bdd86fa095aa9e5 (diff)
xkbwatch: Fix -Wincompatible-pointer-types warning (Issue #2)
Fixes warning from gcc 13 that is becoming an error in gcc 14 xkbwatch.c:92:34: warning: passing argument 7 of ‘XtOpenApplication’ from incompatible pointer type [-Wincompatible-pointer-types] 92 | fallback_resources, | ^~~~~~~~~~~~~~~~~~ | | | char ** In file included from xkbwatch.c:31: .../X11/Intrinsic.h:1473:5: note: expected ‘const char **’ but argument is of type ‘char **’ 1473 | String* /* fallback_resources */, | ^~~~~~~ Closes: #2 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xkbwatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkbwatch.c b/xkbwatch.c
index e01de04..583e222 100644
--- a/xkbwatch.c
+++ b/xkbwatch.c
@@ -72,7 +72,7 @@ main(int argc, char *argv[])
static Arg vArgs[] = { {XtNorientation, (XtArgVal) XtorientVertical} };
static Arg onArgs[] = { {XtNon, (XtArgVal) True} };
static Arg offArgs[] = { {XtNon, (XtArgVal) False} };
- static char *fallback_resources[] = {
+ static String fallback_resources[] = {
"*Box*background: grey50",
"*Box*borderWidth: 0",
"*Box*vSpace: 1",