]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/strutils: fix compiler error
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 6 Jan 2023 03:14:27 +0000 (03:14 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 6 Jan 2023 03:16:14 +0000 (03:16 +0000)
commit09aae73335b5a7d780ca89daafeaa4b90c353a52
treebf9f13056b394579bd2b898297bb6ea539d41524
parenta85d6a04cee9707f6ec0ba2b561f217fa4077f34
lib/strutils: fix compiler error

In file included from /usr/include/stdio.h:894,
                 from lib/strutils.c:8:
In function ‘printf’,
    inlined from ‘test_strutils_cstrcasecmp’ at lib/strutils.c:1324:2,
    inlined from ‘main’ at lib/strutils.c:1348:10:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:112:10: error: ‘%s’ directive argument is null [-Werror=format-overflow=]
  112 |   return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
lib/strutils.c