Avoid -Werror=format/stringop-truncation

It also affects gcc 8.3

Change-Id: I896e84d5e1e96abfe81294e921cfcc060e44fb6f
Reviewed-on: https://gerrit.libreoffice.org/71474
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Julien Nabet
2019-04-29 09:11:26 +02:00
committed by Stephan Bergmann
parent 0d47abc53d
commit 7cf3574ac9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ int issymbolic(char *dir, char *component)
struct stat st;
char buf[ BUFSIZ ], **pp;
#if defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 2 && !defined __clang__
#if defined __GNUC__ && __GNUC__ == 8 && (__GNUC_MINOR__ == 2 || __GNUC_MINOR__ == 3) && !defined __clang__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-truncation"
// silence "‘snprintf’ output may be truncated before the last format character"