mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
bookmark: #pragma diagnostic push/pop requires GCC >= 4.6
Change-Id: I7daf6acebd65dd25aa55242535e1df064f1dc260
This commit is contained in:
parent
d9454f11d5
commit
2da6766f75
1 changed files with 3 additions and 1 deletions
|
@ -375,8 +375,8 @@ static bool add_bookmark(const char* bookmark_file_name, const char* bookmark,
|
||||||
/* GCC 7 and up complain about the snprintf in create_bookmark() when
|
/* GCC 7 and up complain about the snprintf in create_bookmark() when
|
||||||
compiled with -D_FORTIFY_SOURCE or -Wformat-truncation
|
compiled with -D_FORTIFY_SOURCE or -Wformat-truncation
|
||||||
This is a false positive, so disable it here only */
|
This is a false positive, so disable it here only */
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#if __GNUC__ >= 7
|
#if __GNUC__ >= 7
|
||||||
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wformat-truncation"
|
#pragma GCC diagnostic ignored "-Wformat-truncation"
|
||||||
#endif
|
#endif
|
||||||
/* ----------------------------------------------------------------------- */
|
/* ----------------------------------------------------------------------- */
|
||||||
|
@ -447,7 +447,9 @@ static char* create_bookmark()
|
||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#if __GNUC__ >= 7
|
||||||
#pragma GCC diagnostic pop /* -Wformat-truncation */
|
#pragma GCC diagnostic pop /* -Wformat-truncation */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------- */
|
/* ----------------------------------------------------------------------- */
|
||||||
/* This function will determine if an autoload is necessary. This is an */
|
/* This function will determine if an autoload is necessary. This is an */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue