diff options
author | Dimitry Andric <dimitry@andric.com> | 2020-02-19 21:24:59 +0100 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2020-02-19 14:30:58 -0800 |
commit | e200d0d41ef3158ea717206c1490e499a0c07f1b (patch) | |
tree | 8eeeebc64ef494379c860a9214f272a8f190f99a /keymap.c | |
parent | 29fda8e50e4a4a127348e63fcf9f47600beab93c (diff) |
Don't compare with string literals
xkbcomp.c:228:37: error: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Werror,-Wstring-compare]
if ((argv[i][0] != '-') || (uStringEqual(argv[i], "-")))
^~~~~~~~~~~~~~~~~~~~~~~~~~
./utils.h:195:30: note: expanded from macro 'uStringEqual'
^~~~~~~~~~~~~~~~~~~~~
./utils.h:198:38: note: expanded from macro 'uStringCompare'
(s1)!=(s2):strcmp(s1,s2))
^ ~~~~
Don't attempt to do this macro trickery, and simply use strcmp instead,
where it applies.
Bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244235
Diffstat (limited to 'keymap.c')
0 files changed, 0 insertions, 0 deletions