From 3dee617c8633823fb550e24ef7a20f602cad6355 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Wed, 25 Jan 2017 14:39:14 -0800 Subject: [PATCH] Fix unused variable build warning on Mac. Change-Id: I330187be6a96bfd388c2776f676d47a9145d5e4a --- src/flatc_main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/flatc_main.cpp b/src/flatc_main.cpp index 2063731c9..f4d9557bf 100644 --- a/src/flatc_main.cpp +++ b/src/flatc_main.cpp @@ -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) {