mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-05 05:39:18 -05:00
REXM: Ignore some warnings on GCC/Clang
This commit is contained in:
@ -72,6 +72,12 @@
|
|||||||
// Create local commit with changes on example renaming
|
// Create local commit with changes on example renaming
|
||||||
//#define RENAME_AUTO_COMMIT_CREATION
|
//#define RENAME_AUTO_COMMIT_CREATION
|
||||||
|
|
||||||
|
#if defined(__GNUC__) // GCC and Clang
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
// Avoid GCC/Clang complaining about sprintf() second parameter not being a string literal (being TextFormat())
|
||||||
|
#pragma GCC diagnostic ignored "-Wformat-security"
|
||||||
|
#endif
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Types and Structures Definition
|
// Types and Structures Definition
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
@ -2917,3 +2923,6 @@ static bool TextInList(const char *text, const char **list, int listCount)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__GNUC__) // GCC and Clang
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user