瀏覽代碼

REXM: Ignore some warnings on GCC/Clang

pull/5402/head
Ray 1 周之前
父節點
當前提交
dad93abcf8
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      tools/rexm/rexm.c

+ 9
- 0
tools/rexm/rexm.c 查看文件

@ -72,6 +72,12 @@
// Create local commit with changes on example renaming
//#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
//----------------------------------------------------------------------------------
@ -2917,3 +2923,6 @@ static bool TextInList(const char *text, const char **list, int listCount)
return result;
}
#if defined(__GNUC__) // GCC and Clang
#pragma GCC diagnostic pop
#endif

Loading…
取消
儲存