x11perf: Changes to 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Jul 20 16:15:41 UTC 2024


 x11perf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 397cfd30aed296e1f3f7c37e0c65ecf558ca8baa
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Sat Jul 13 16:42:19 2024 -0700

    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 at oracle.com>
    Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/11>



More information about the xorg-commit mailing list