]> git.saurik.com Git - apt.git/commitdiff
apt-internal-solver: Make ShowHelp() and GetCommands() static
authorJulian Andres Klode <jak@debian.org>
Fri, 11 Dec 2015 14:00:17 +0000 (15:00 +0100)
committerJulian Andres Klode <jak@debian.org>
Fri, 11 Dec 2015 14:01:16 +0000 (15:01 +0100)
This fixes a warning reported by gcc.

Gbp-Dch: ignore

cmdline/apt-internal-solver.cc

index 90800e1d91d0ec1bc41078b7cf2d5b6e337070c0..b88d745c46e6cfbb02e029cad95f809317528d8a 100644 (file)
@@ -41,7 +41,7 @@
 #include <apti18n.h>
                                                                        /*}}}*/
 
-bool ShowHelp(CommandLine &)                                           /*{{{*/
+static bool ShowHelp(CommandLine &)                                    /*{{{*/
 {
        std::cout <<
                _("Usage: apt-internal-solver\n"
@@ -58,7 +58,7 @@ APT_NORETURN static void DIE(std::string const &message) {            /*{{{*/
        exit(EXIT_FAILURE);
 }
                                                                        /*}}}*/
-std::vector<aptDispatchWithHelp> GetCommands()                         /*{{{*/
+static std::vector<aptDispatchWithHelp> GetCommands()                  /*{{{*/
 {
    return {};
 }