Kaydet (Commit) 7cf3574a authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Stephan Bergmann

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: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 0d47abc5
...@@ -67,7 +67,7 @@ void HWPStyle::SetName(int n, char const *name) ...@@ -67,7 +67,7 @@ void HWPStyle::SetName(int n, char const *name)
{ {
if (name) if (name)
{ {
#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 push
#pragma GCC diagnostic ignored "-Wstringop-truncation" #pragma GCC diagnostic ignored "-Wstringop-truncation"
#endif #endif
......
...@@ -243,7 +243,7 @@ int issymbolic(char *dir, char *component) ...@@ -243,7 +243,7 @@ int issymbolic(char *dir, char *component)
struct stat st; struct stat st;
char buf[ BUFSIZ ], **pp; 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 push
#pragma GCC diagnostic ignored "-Wformat-truncation" #pragma GCC diagnostic ignored "-Wformat-truncation"
// silence "‘snprintf’ output may be truncated before the last format character" // silence "‘snprintf’ output may be truncated before the last format character"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment