summaryrefslogtreecommitdiff
path: root/soltools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-04-29 12:35:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-04-29 14:27:56 +0200
commitdf5d1e47c33a8b9bf2b9783d5338f8432827a760 (patch)
treea56c8dacdd6b949de6c3c853c5fe9591c4053f1c /soltools
parent0d5ae0b0e88e30b7c196613bd0b8f3d3eb18674a (diff)
Fix conditional around closing #pragma GCC diagnostic pop
...which 7cf3574ac9208e70c03eeaca2def0235ec90f55f "Avoid -Werror=format/stringop-truncation" had failed to adapt Change-Id: Ide00c8136db27519c2d694576910c423d40d481e Reviewed-on: https://gerrit.libreoffice.org/71521 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'soltools')
-rw-r--r--soltools/mkdepend/include.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/soltools/mkdepend/include.c b/soltools/mkdepend/include.c
index 27f20f40fb98..c95af5451b47 100644
--- a/soltools/mkdepend/include.c
+++ b/soltools/mkdepend/include.c
@@ -249,7 +249,7 @@ int issymbolic(char *dir, char *component)
// silence "‘snprintf’ output may be truncated before the last format character"
#endif
int n = snprintf(buf, BUFSIZ, "%s%s%s", dir, *dir ? "/" : "", component);
-#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 pop
#endif
assert(n < BUFSIZ);