aboutsummaryrefslogtreecommitdiff
path: root/tool/tool.cc
diff options
context:
space:
mode:
authorPiotr Sikora <piotrsikora@google.com>2016-03-18 18:19:04 -0700
committerDavid Benjamin <davidben@google.com>2016-03-20 16:37:58 +0000
commit9bb8ba6ba1a865bd7e55ccf494d082b1bc027734 (patch)
tree11d4f1473e4e0a7dabf73b804967d2afc00a53c1 /tool/tool.cc
parent537cfc37b82f91f1006596317ba544e4be1a5c8e (diff)
downloadboringssl-9bb8ba6ba1a865bd7e55ccf494d082b1bc027734.zip
boringssl-9bb8ba6ba1a865bd7e55ccf494d082b1bc027734.tar.gz
boringssl-9bb8ba6ba1a865bd7e55ccf494d082b1bc027734.tar.bz2
Make local functions static.
Partially fixes build with -Wmissing-prototypes -Wmissing-declarations. Change-Id: I6048f5b7ef31560399b25ed9880156bc7d8abac2 Signed-off-by: Piotr Sikora <piotrsikora@google.com> Reviewed-on: https://boringssl-review.googlesource.com/7511 Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'tool/tool.cc')
-rw-r--r--tool/tool.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/tool.cc b/tool/tool.cc
index b825008..84f5598 100644
--- a/tool/tool.cc
+++ b/tool/tool.cc
@@ -83,7 +83,7 @@ static void usage(const char *name) {
}
}
-tool_func_t FindTool(const std::string &name) {
+static tool_func_t FindTool(const std::string &name) {
for (size_t i = 0;; i++) {
const Tool &tool = kTools[i];
if (tool.func == nullptr || name == tool.name) {