瀏覽代碼

apt-internal-solver: Make ShowHelp() and GetCommands() static

This fixes a warning reported by gcc.

Gbp-Dch: ignore
Julian Andres Klode 10 年之前
父節點
當前提交
9596cb945a
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      cmdline/apt-internal-solver.cc

+ 2 - 2
cmdline/apt-internal-solver.cc

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