From: Sergey Sharybin Date: Thu, 31 Dec 2015 12:09:59 +0000 (+0500) Subject: Resolve several missing declarations warnings X-Git-Tag: submit/tizen/20180312.052625~85^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f100cb6a0380aeb32c87672d2c847070d691b2e;p=platform%2Fupstream%2Fgflags.git Resolve several missing declarations warnings --- diff --git a/src/gflags_completions.cc b/src/gflags_completions.cc index 3a47623..d7097ca 100644 --- a/src/gflags_completions.cc +++ b/src/gflags_completions.cc @@ -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 diff --git a/test/gflags_declare_flags.cc b/test/gflags_declare_flags.cc index dc53de5..2491686 100644 --- a/test/gflags_declare_flags.cc +++ b/test/gflags_declare_flags.cc @@ -3,6 +3,7 @@ DECLARE_string(message); // in gflags_delcare_test.cc +void print_message(); void print_message() { std::cout << FLAGS_message << std::endl; diff --git a/test/gflags_unittest.cc b/test/gflags_unittest.cc index 80f7398..cc3049b 100644 --- a/test/gflags_unittest.cc +++ b/test/gflags_unittest.cc @@ -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