diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/bookmark.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c index c07e2feb70..b19841fda0 100644 --- a/apps/bookmark.c +++ b/apps/bookmark.c | |||
@@ -375,8 +375,8 @@ static bool add_bookmark(const char* bookmark_file_name, const char* bookmark, | |||
375 | /* GCC 7 and up complain about the snprintf in create_bookmark() when | 375 | /* GCC 7 and up complain about the snprintf in create_bookmark() when |
376 | compiled with -D_FORTIFY_SOURCE or -Wformat-truncation | 376 | compiled with -D_FORTIFY_SOURCE or -Wformat-truncation |
377 | This is a false positive, so disable it here only */ | 377 | This is a false positive, so disable it here only */ |
378 | #pragma GCC diagnostic push | ||
379 | #if __GNUC__ >= 7 | 378 | #if __GNUC__ >= 7 |
379 | #pragma GCC diagnostic push | ||
380 | #pragma GCC diagnostic ignored "-Wformat-truncation" | 380 | #pragma GCC diagnostic ignored "-Wformat-truncation" |
381 | #endif | 381 | #endif |
382 | /* ----------------------------------------------------------------------- */ | 382 | /* ----------------------------------------------------------------------- */ |
@@ -447,7 +447,9 @@ static char* create_bookmark() | |||
447 | else | 447 | else |
448 | return NULL; | 448 | return NULL; |
449 | } | 449 | } |
450 | #if __GNUC__ >= 7 | ||
450 | #pragma GCC diagnostic pop /* -Wformat-truncation */ | 451 | #pragma GCC diagnostic pop /* -Wformat-truncation */ |
452 | #endif | ||
451 | 453 | ||
452 | /* ----------------------------------------------------------------------- */ | 454 | /* ----------------------------------------------------------------------- */ |
453 | /* This function will determine if an autoload is necessary. This is an */ | 455 | /* This function will determine if an autoload is necessary. This is an */ |