Wow, lots of missing 'static' on internal functions.
-CXXWARNINGS_FLAGS=-Wall -Wextra -Wwrite-strings
+CXXWARNINGS_FLAGS=-Wall -Wextra -Wmissing-declarations -Wwrite-strings
CWARNINGS_FLAGS=$(CXXWARNINGS_FLAGS)
CDEPENDS_FLAGS=`pkg-config --cflags glib-2.0 talloc`
CWARNINGS_FLAGS=$(CXXWARNINGS_FLAGS)
CDEPENDS_FLAGS=`pkg-config --cflags glib-2.0 talloc`
-notmuch_private_status_t
+static notmuch_private_status_t
find_timestamp_document (notmuch_database_t *notmuch, const char *db_key,
Xapian::Document *doc, unsigned int *doc_id)
{
find_timestamp_document (notmuch_database_t *notmuch, const char *db_key,
Xapian::Document *doc, unsigned int *doc_id)
{
*
* Otherwise, returns a newly talloced string belonging to 'ctx'.
*/
*
* Otherwise, returns a newly talloced string belonging to 'ctx'.
*/
_resolve_message_id_to_thread_id (notmuch_database_t *notmuch,
void *ctx,
const char *message_id)
_resolve_message_id_to_thread_id (notmuch_database_t *notmuch,
void *ctx,
const char *message_id)
notmuch_message_file_restrict_headersv (message, va_headers);
}
notmuch_message_file_restrict_headersv (message, va_headers);
}
copy_header_unfolding (header_value_closure_t *value,
const char *chunk)
{
copy_header_unfolding (header_value_closure_t *value,
const char *chunk)
{
+static notmuch_terms_t *
_notmuch_terms_create (void *ctx,
Xapian::Document doc,
const char *prefix_name)
_notmuch_terms_create (void *ctx,
Xapian::Document doc,
const char *prefix_name)
_notmuch_terms_has_more (notmuch_terms_t *terms)
{
std::string s;
_notmuch_terms_has_more (notmuch_terms_t *terms)
{
std::string s;
_notmuch_terms_get (notmuch_terms_t *terms)
{
return talloc_strdup (terms, (*terms->iterator).c_str () + 1);
}
_notmuch_terms_get (notmuch_terms_t *terms)
{
return talloc_strdup (terms, (*terms->iterator).c_str () + 1);
}
_notmuch_terms_advance (notmuch_terms_t *terms)
{
terms->iterator++;
}
_notmuch_terms_advance (notmuch_terms_t *terms)
{
terms->iterator++;
}
_notmuch_terms_destroy (notmuch_terms_t *terms)
{
talloc_free (terms);
_notmuch_terms_destroy (notmuch_terms_t *terms)
{
talloc_free (terms);
}
/* Compute the number of seconds elapsed from start to end. */
}
/* Compute the number of seconds elapsed from start to end. */
tv_elapsed (struct timeval start, struct timeval end)
{
return ((end.tv_sec - start.tv_sec) +
(end.tv_usec - start.tv_usec) / 1e6);
}
tv_elapsed (struct timeval start, struct timeval end)
{
return ((end.tv_sec - start.tv_sec) +
(end.tv_usec - start.tv_usec) / 1e6);
}
print_formatted_seconds (double seconds)
{
int hours;
print_formatted_seconds (double seconds)
{
int hours;
printf ("%ds", (int) seconds);
}
printf ("%ds", (int) seconds);
}
add_files_print_progress (add_files_state_t *state)
{
struct timeval tv_now;
add_files_print_progress (add_files_state_t *state)
{
struct timeval tv_now;
* The 'struct stat *st' must point to a structure that has already
* been initialized for 'path' by calling stat().
*/
* The 'struct stat *st' must point to a structure that has already
* been initialized for 'path' by calling stat().
*/
add_files_recursive (notmuch_database_t *notmuch,
const char *path,
struct stat *st,
add_files_recursive (notmuch_database_t *notmuch,
const char *path,
struct stat *st,
* of path. The result is added to *count (which should be
* initialized to zero by the top-level caller before calling
* count_files). */
* of path. The result is added to *count (which should be
* initialized to zero by the top-level caller before calling
* count_files). */
count_files (const char *path, int *count)
{
DIR *dir;
count_files (const char *path, int *count)
{
DIR *dir;
setup_command (unused (int argc), unused (char *argv[]))
{
notmuch_database_t *notmuch = NULL;
setup_command (unused (int argc), unused (char *argv[]))
{
notmuch_database_t *notmuch = NULL;
new_command (unused (int argc), unused (char *argv[]))
{
notmuch_database_t *notmuch;
new_command (unused (int argc), unused (char *argv[]))
{
notmuch_database_t *notmuch;
search_command (int argc, char *argv[])
{
void *local = talloc_new (NULL);
search_command (int argc, char *argv[])
{
void *local = talloc_new (NULL);
show_command (unused (int argc), unused (char *argv[]))
{
fprintf (stderr, "Error: show is not implemented yet.\n");
return 1;
}
show_command (unused (int argc), unused (char *argv[]))
{
fprintf (stderr, "Error: show is not implemented yet.\n");
return 1;
}
dump_command (int argc, char *argv[])
{
FILE *output;
dump_command (int argc, char *argv[])
{
FILE *output;
restore_command (int argc, char *argv[])
{
FILE *input;
restore_command (int argc, char *argv[])
{
FILE *input;
"\t\tRestore the tags from the given dump file (see 'dump')." }
};
"\t\tRestore the tags from the given dump file (see 'dump')." }
};
usage (void)
{
command_t *command;
usage (void)
{
command_t *command;