Resolve several missing declarations warnings
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 31 Dec 2015 12:09:59 +0000 (17:09 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 31 Dec 2015 12:09:59 +0000 (17:09 +0500)
src/gflags_completions.cc
test/gflags_declare_flags.cc
test/gflags_unittest.cc

index 3a47623..d7097ca 100644 (file)
@@ -47,6 +47,8 @@
 //     5b) Trim most flag's descriptions to fit on a single terminal line
 
 
+#include "gflags_completions.h"
+
 #include "config.h"
 
 #include <stdio.h>
index dc53de5..2491686 100644 (file)
@@ -3,6 +3,7 @@
 
 DECLARE_string(message); // in gflags_delcare_test.cc
 
+void print_message();
 void print_message()
 {
   std::cout << FLAGS_message << std::endl;
index 80f7398..cc3049b 100644 (file)
@@ -1485,7 +1485,7 @@ TEST(FlagsValidator, FlagSaver) {
 
 }  // unnamed namespace
 
-int main(int argc, char **argv) {
+static int main(int argc, char **argv) {
 
   // Run unit tests only if called without arguments, otherwise this program
   // is used by an "external" usage test