archiecobbs / s3backer

FUSE/NBD single file backing store via Amazon S3
Other
529 stars 75 forks source link

Warning on make (directive argument is null) #161

Closed solracsf closed 2 years ago

solracsf commented 2 years ago

I don't know if this is somehow expected or not (it shouldn't, so reporting).

Ubuntu 20.04 64bits compiling v1.6.3

...
gcc -DHAVE_CONFIG_H -I.    -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -g -O3 -pipe -Wall -Waggregate-return -Wcast-align -Wchar-subscripts -Wcomment -Wformat -Wimplicit -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long -Wparentheses -Wpointer-arith -Wredundant-decls -Wreturn-type -Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-strings -Wshadow -Wstrict-prototypes -Wcast-qual  -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -MT s3b_config.o -MD -MP -MF .deps/s3b_config.Tpo -c -o s3b_config.o s3b_config.c
In file included from /usr/include/stdio.h:867,
                 from /usr/include/x86_64-linux-gnu/curl/curl.h:49,
                 from s3backer.h:62,
                 from s3b_config.c:37:
In function âfprintfâ,
    inlined from âusageâ at s3b_config.c:1879:9,
    inlined from âhandle_unknown_optionâ at s3b_config.c:983:13,
    inlined from âhandle_unknown_optionâ at s3b_config.c:957:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:100:10: warning: â%sâ directive argument is null [-Wformat-overflow=]
  100 |   return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  101 |    __va_arg_pack ());
      |    ~~~~~~~~~~~~~~~~~
mv -f .deps/s3b_config.Tpo .deps/s3b_config.Po
...
archiecobbs commented 2 years ago

It's a bug - should be fixed by bea6cd1.

Thanks!