diff --git a/src/flatc_main.cpp b/src/flatc_main.cpp
index 2063731c96189f7d93b9e44c85a466b4e92d05a0..f4d9557bf00183b09024f43deb079d85bd25621e 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) {