summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cc48812)
It's easy enough to squelch the warning with an __attribute__ ((unused))
and it might just catch something for us in the future.
-CXXWARNINGS_FLAGS=-Wall -Wextra -Wno-unused-parameter
+CXXWARNINGS_FLAGS=-Wall -Wextra
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`
_internal_error (format " (%s).\n", \
##__VA_ARGS__, __location__)
_internal_error (format " (%s).\n", \
##__VA_ARGS__, __location__)
+#define unused(x) x __attribute__ ((unused))
+
/* Thanks to Andrew Tridgell's (SAMBA's) talloc for this definition of
* unlikely. The talloc source code comes to us via the GNU LGPL v. 3.
*/
/* Thanks to Andrew Tridgell's (SAMBA's) talloc for this definition of
* unlikely. The talloc source code comes to us via the GNU LGPL v. 3.
*/
#include <glib.h> /* g_strdup_printf */
#include <glib.h> /* g_strdup_printf */
+#define unused(x) x __attribute__ ((unused))
+
/* There's no point in continuing when we've detected that we've done
* something wrong internally (as opposed to the user passing in a
* bogus value).
/* There's no point in continuing when we've detected that we've done
* something wrong internally (as opposed to the user passing in a
* bogus value).
-setup_command (int argc, char *argv[])
+setup_command (unused (int argc), unused (char *argv[]))
{
notmuch_database_t *notmuch = NULL;
char *default_path, *mail_directory = NULL;
{
notmuch_database_t *notmuch = NULL;
char *default_path, *mail_directory = NULL;
-new_command (int argc, char *argv[])
+new_command (unused (int argc), unused (char *argv[]))
{
notmuch_database_t *notmuch;
const char *mail_directory;
{
notmuch_database_t *notmuch;
const char *mail_directory;
-show_command (int argc, char *argv[])
+show_command (unused (int argc), unused (char *argv[]))
{
fprintf (stderr, "Error: show is not implemented yet.\n");
return 1;
{
fprintf (stderr, "Error: show is not implemented yet.\n");
return 1;