• Stephan Bergmann's avatar
    Silence GCC 8.2.1 -Werror=format-truncation= · f0f1ae6e
    Stephan Bergmann yazdı
    After 09841225 "soltools: fix
    -Werror=format-overflow" changed the sprintf into an snprintf, at least the
    Fedora 29 "gcc (GCC) 8.2.1 20181011 (Red Hat 8.2.1-4)" now complains about
    
    > [C  ] soltools/mkdepend/include.c
    > soltools/mkdepend/include.c: In function ‘remove_dotdot.constprop’:
    > soltools/mkdepend/include.c:246:42: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
    >      int n = snprintf(buf, BUFSIZ, "%s%s%s", dir, *dir ? "/" : "", component);
    >                                           ^
    > soltools/mkdepend/include.c:246:13: note: ‘snprintf’ output 1 or more bytes (assuming 8193) into a destination of size 8192
    >      int n = snprintf(buf, BUFSIZ, "%s%s%s", dir, *dir ? "/" : "", component);
    >              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    This all looks not very helpful, lets limit the silencing to just GCC 8.2 (in
    the hopes that later versions of GCC won't emit that warning any more, anyway).
    
    Change-Id: I006964e4f32bbb52b6b90288e2d623797b8d38ea
    Reviewed-on: https://gerrit.libreoffice.org/63068
    Tested-by: Jenkins
    Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
    f0f1ae6e
Adı
Son kayıt (commit)
Son güncelleme
..
collectdircontent.cxx Loading commit data...
collectdircontent.hxx Loading commit data...
cppsetup.c Loading commit data...
def.h Loading commit data...
ifparser.c Loading commit data...
ifparser.h Loading commit data...
imakemdep.h Loading commit data...
include.c Loading commit data...
main.c Loading commit data...
mkdepend.man Loading commit data...
parse.c Loading commit data...
pr.c Loading commit data...