summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/format.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-07-06 01:31:24 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-07-06 10:43:56 +0200
commit725b7bd79f2c28aba188ae0768bb5bbb5e416fa0 (patch)
tree3c459191729651f11d6a32c9464035698e675ab8 /crawl-ref/source/format.cc
parent80a2d8a18ee93dfa3d541b71ff1eac53d737499c (diff)
downloadcrawl-ref-725b7bd79f2c28aba188ae0768bb5bbb5e416fa0.tar.gz
crawl-ref-725b7bd79f2c28aba188ae0768bb5bbb5e416fa0.zip
For functions with names starting with _, actually declare them static.
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r--crawl-ref/source/format.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc
index 06b8e6d1af..dbecf09624 100644
--- a/crawl-ref/source/format.cc
+++ b/crawl-ref/source/format.cc
@@ -530,7 +530,7 @@ int count_linebreaks(const formatted_string& fs)
// Return the actual (string) offset of character #loc to be printed,
// i.e. ignoring tags. So for instance, if s == "<tag>ab</tag>", then
// _find_string_location(s, 2) == 6.
-int _find_string_location(const std::string& s, int loc)
+static int _find_string_location(const std::string& s, int loc)
{
int real_offset = 0;
bool in_tag = false;