summaryrefslogtreecommitdiff
path: root/bitmaps.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-07-13 16:42:19 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-07-13 16:42:19 -0700
commit397cfd30aed296e1f3f7c37e0c65ecf558ca8baa (patch)
tree4cf8f6f05c2e88e67dfb369d3cc29458f72f338c /bitmaps.h
parente7a65459a2f6ce9ea5fd3d0ac413043986c19471 (diff)
Include both option name & argument in invalid argument errors
Found by gcc 14.1: x11perf.c: In function ‘invalid_arg’: x11perf.c:339:21: warning: too many arguments for format [-Wformat-extra-args] 339 | fprintf(stderr, "Error: invalid argument to %s\n", arg, option); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: e7a6545 ("When users give invalid arguments, tell them what they did wrong") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/11>
Diffstat (limited to 'bitmaps.h')
0 files changed, 0 insertions, 0 deletions