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 3a476230ff974b2fa9e42ce877dcd8ab5d9f004c..d7097caeef734efa8e0f044ad15c26c838111028 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 dc53de591ade24df85664f88110980143304f334..24916861cc691e79c78cd41bd0b0c2aaec5780ee 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 80f7398a059067a7f8fe1280069a67c7ab543be2..cc3049bfa1981b56a424d82ad0676d6d59c5e3ea 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