summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2020-03-27 09:56:26 -0700
committerMatt Turner <mattst88@gmail.com>2020-03-27 09:56:26 -0700
commit15be5d8d295f4d7c779845cd11e06c08cfacad85 (patch)
tree70f08895fb8401c344909870344d4656e247a82e
parenta97f306fd57878158962eb873c23f03a5c6da9db (diff)
Add const to silence warning
widgets.c:817:28: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--widgets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets.c b/widgets.c
index f3ad877..fc89815 100644
--- a/widgets.c
+++ b/widgets.c
@@ -814,7 +814,7 @@ MakeBoxLookNice(Widget dot, Widget star, Widget any, Widget single,
* Returns: none
*/
-static char* noneList[] = {"None"};
+static const char *noneList[] = {"None"};
static void
CreateLists(Widget parent, WNode *node, char **names, char **cons_names)