mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-04 19:51:11 +00:00
Fix unused variable build warning on Mac.
Change-Id: I330187be6a96bfd388c2776f676d47a9145d5e4a
This commit is contained in:
@@ -18,16 +18,17 @@
|
|||||||
|
|
||||||
static const char *g_program_name = nullptr;
|
static const char *g_program_name = nullptr;
|
||||||
|
|
||||||
static void Warn(const flatbuffers::FlatCompiler* flatc,
|
static void Warn(const flatbuffers::FlatCompiler *flatc,
|
||||||
const std::string &warn,
|
const std::string &warn,
|
||||||
bool show_exe_name) {
|
bool show_exe_name) {
|
||||||
|
(void)flatc;
|
||||||
if (show_exe_name) {
|
if (show_exe_name) {
|
||||||
printf("%s: ", g_program_name);
|
printf("%s: ", g_program_name);
|
||||||
}
|
}
|
||||||
printf("warning: %s\n", warn.c_str());
|
printf("warning: %s\n", warn.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Error(const flatbuffers::FlatCompiler* flatc,
|
static void Error(const flatbuffers::FlatCompiler *flatc,
|
||||||
const std::string &err,
|
const std::string &err,
|
||||||
bool usage,
|
bool usage,
|
||||||
bool show_exe_name) {
|
bool show_exe_name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user