]> git.saurik.com Git - apt.git/commitdiff
tests: silence -Wmissing-declarations
authorDavid Kalnischkies <david@kalnischkies.de>
Thu, 1 Sep 2016 06:49:22 +0000 (08:49 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Thu, 1 Sep 2016 14:13:32 +0000 (16:13 +0200)
Gbp-Dch: Ignore
Reported-By: gcc -Wmissing-declarations
test/libapt/commandline_test.cc
test/libapt/strutil_test.cc
test/libapt/tagsection_test.cc

index 7783c47a4f800e2d6509bbfaf0c6a83e27d2b182..97725c8549cb18dd30d959a8b3c7b3a9e9f81c24 100644 (file)
@@ -17,10 +17,6 @@ class CLT: public CommandLine {
       }
 };
 
-bool ShowHelp(CommandLine &) {return false;}
-std::vector<aptDispatchWithHelp> GetCommands() {return {};}
-
-
 TEST(CommandLineTest,SaveInConfig)
 {
 #define APT_EXPECT_CMD(x, ...) { const char * const argv[] = { __VA_ARGS__ }; EXPECT_EQ(x, CLT::AsString(argv, sizeof(argv)/sizeof(argv[0]))); }
@@ -166,7 +162,7 @@ TEST(CommandLineTest, BoolParsing)
 
 }
 
-bool DoVoid(CommandLine &) { return false; }
+static bool DoVoid(CommandLine &) { return false; }
 
 TEST(CommandLineTest,GetCommand)
 {
index 90a5817ad82e142c5552ff139545995b95f3e445..d7700bd5405fa07934d01bbc161e739fe66a4f43 100644 (file)
@@ -168,7 +168,7 @@ TEST(StrUtilTest,Base64Encode)
    EXPECT_EQ("Lg==", Base64Encode("."));
    EXPECT_EQ("", Base64Encode(""));
 }
-void ReadMessagesTestWithNewLine(char const * const nl, char const * const ab)
+static void ReadMessagesTestWithNewLine(char const * const nl, char const * const ab)
 {
    SCOPED_TRACE(SubstVar(SubstVar(nl, "\n", "n"), "\r", "r") + " # " + ab);
    FileFd fd;
index f250177af4257a341062c941464393221ec68950..779932595386fa2cd8c399f03b5d49a6cd4ddf4d 100644 (file)
@@ -24,7 +24,7 @@ std::string overrideValue = "1";
    std::cerr << "«" << std::endl;;
 */
 
-void setupTestcaseStart(FileFd &fd, pkgTagSection &section, std::string &content)
+static void setupTestcaseStart(FileFd &fd, pkgTagSection &section, std::string &content)
 {
    createTemporaryFile("writesection", fd, NULL, NULL);
    content = "Package: " + packageValue + "\n"