aboutsummaryrefslogtreecommitdiff
path: root/message.cc
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-25 15:58:05 -0700
committerCarl Worth <cworth@cworth.org>2009-10-25 15:58:05 -0700
commitc7482b4dce114b1c09cbac2f4ef6d0defdb23258 (patch)
treec661798f1bfab45962f169c5c2474d56a19c8768 /message.cc
parenteb7b8cf31a8378784e97966204559f1b270ac3e9 (diff)
Add -Wmising-declarations and fix warnings.
Wow, lots of missing 'static' on internal functions.
Diffstat (limited to 'message.cc')
-rw-r--r--message.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/message.cc b/message.cc
index 75ec634..5922cfc 100644
--- a/message.cc
+++ b/message.cc
@@ -310,7 +310,7 @@ _notmuch_terms_destructor (notmuch_terms_t *terms)
return 0;
}
-notmuch_terms_t *
+static notmuch_terms_t *
_notmuch_terms_create (void *ctx,
Xapian::Document doc,
const char *prefix_name)
@@ -526,7 +526,7 @@ notmuch_message_destroy (notmuch_message_t *message)
talloc_free (message);
}
-notmuch_bool_t
+static notmuch_bool_t
_notmuch_terms_has_more (notmuch_terms_t *terms)
{
std::string s;
@@ -541,19 +541,19 @@ _notmuch_terms_has_more (notmuch_terms_t *terms)
return FALSE;
}
-const char *
+static const char *
_notmuch_terms_get (notmuch_terms_t *terms)
{
return talloc_strdup (terms, (*terms->iterator).c_str () + 1);
}
-void
+static void
_notmuch_terms_advance (notmuch_terms_t *terms)
{
terms->iterator++;
}
-void
+static void
_notmuch_terms_destroy (notmuch_terms_t *terms)
{
talloc_free (terms);