diff options
author | Walter Harms <wharms@bfs.de> | 2021-12-31 15:47:18 +0100 |
---|---|---|
committer | Walter Harms <wharms@bfs.de> | 2021-12-31 15:47:18 +0100 |
commit | 6ae13951f86f7117d354c1ac10bde54061c3b89d (patch) | |
tree | 061d342b00880bfeaa65524671860ce3b4819046 /setxkbmap.c | |
parent | 8872561b38049dbe34d4dd6903d16b0ef2c9e46d (diff) |
fix: warning: assignment discards ‘const’ qualifier from pointer target type
fix: warning: assignment discards ‘const’ qualifier from pointer target type
make warning go away with casting
Signed-off-by: Walter Harms <wharms@bfs.de>
Diffstat (limited to 'setxkbmap.c')
-rw-r--r-- | setxkbmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/setxkbmap.c b/setxkbmap.c index 68eb9a6..ba7830f 100644 --- a/setxkbmap.c +++ b/setxkbmap.c @@ -555,7 +555,7 @@ getDisplay(int argc, char **argv) if (settings.display.value == NULL) settings.display.value = getenv("DISPLAY"); if (settings.display.value == NULL) - settings.display.value = "default display"; + settings.display.value = (char *) "default display"; switch (why) { case XkbOD_BadLibraryVersion: @@ -605,9 +605,9 @@ getServerValues(void) if (!XkbRF_GetNamesProp(dpy, &tmp, &vd) || !tmp) { VMSG1(3, "Couldn't interpret %s property\n", _XKB_RF_NAMES_PROP_ATOM); - tmp = DFLT_XKB_RULES_FILE; - vd.model = DFLT_XKB_MODEL; - vd.layout = DFLT_XKB_LAYOUT; + tmp = (char *) DFLT_XKB_RULES_FILE; + vd.model = (char *) DFLT_XKB_MODEL; + vd.layout = (char *) DFLT_XKB_LAYOUT; vd.variant = NULL; vd.options = NULL; VMSG3(3, "Use defaults: rules - '%s' model - '%s' layout - '%s'\n", @@ -862,7 +862,7 @@ applyRules(void) if (settings.rules.src) rfName = settings.rules.value; else - rfName = DFLT_XKB_RULES_FILE; + rfName = (char *) DFLT_XKB_RULES_FILE; if (rfName[0] == '/') { |