summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwharms <wharms@bfs.de>2017-09-03 14:17:45 +0200
committerwharms <wharms@bfs.de>2017-09-03 14:17:45 +0200
commite835a9dcc3362b5e92893be756dd7ae361e64ced (patch)
tree7edf8828227fb3a0c2c9a5011b01316026e045b3
parent36a1ac0253fea82ff79cc52ba56c5691cfd07a3b (diff)
silence gcc warning assignment discards 'const' qualifier from pointer target type
-rw-r--r--src/DisName.c2
-rw-r--r--src/FSWrap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/DisName.c b/src/DisName.c
index 87a1e2f0..5a90ab34 100644
--- a/src/DisName.c
+++ b/src/DisName.c
@@ -60,5 +60,5 @@ XDisplayName(
return( (char *)display );
if ( (d = getenv( "DISPLAY" )) != (char *)NULL )
return( d );
- return( "" );
+ return( (char *) "" );
}
diff --git a/src/FSWrap.c b/src/FSWrap.c
index 12d0406b..92caea07 100644
--- a/src/FSWrap.c
+++ b/src/FSWrap.c
@@ -195,7 +195,7 @@ XCreateFontSet (
if (oc && def_string) {
*def_string = oc->core.default_string;
if (!*def_string)
- *def_string = "";
+ *def_string = (char *)"";
}
if (oc == NULL)