Skip to content
Snippets Groups Projects
Commit 3dee617c authored by Wouter van Oortmerssen's avatar Wouter van Oortmerssen
Browse files

Fix unused variable build warning on Mac.

Change-Id: I330187be6a96bfd388c2776f676d47a9145d5e4a
parent 2fb25e2b
No related branches found
No related tags found
No related merge requests found
......@@ -18,16 +18,17 @@
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,
bool show_exe_name) {
(void)flatc;
if (show_exe_name) {
printf("%s: ", g_program_name);
}
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,
bool usage,
bool show_exe_name) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment