diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-06-01 18:33:51 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-06-01 18:33:51 -0700 |
commit | 73e835828184af9230db2176579a4ff74da7785b (patch) | |
tree | 27d866a1f91a9cb0a2a3884a04a9e9201f401a88 /COPYING | |
parent | 60be69492ae346a89c5e510dfa6af8495c4fa078 (diff) |
Use _CONST_X_STRING to make libXt declare String as const char *
Clears gcc 7.3 warnings of:
appres.c: In function ‘main’:
appres.c:36:16: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
#define NONAME "-AppResTest-"
^
appres.c:126:20: note: in expansion of macro ‘NONAME’
String iname = NONAME, cname = NONAME;
^~~~~~
appres.c:36:16: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
#define NONAME "-AppResTest-"
^
appres.c:126:36: note: in expansion of macro ‘NONAME’
String iname = NONAME, cname = NONAME;
^~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions