]> git.notmuchmail.org Git - notmuch/commitdiff
lib/open: remove incorrect unused attribute
authorDavid Bremner <david@tethera.net>
Mon, 15 Feb 2021 02:27:51 +0000 (22:27 -0400)
committerDavid Bremner <david@tethera.net>
Mon, 15 Feb 2021 02:27:51 +0000 (22:27 -0400)
With the current unused macro in lib/notmuch-private.h this seems
harmless, but is misleading, since the parameter is in fact used.

lib/open.cc

index b4637ec5445cba1ffbb93bd9cde237f0e0a3e327..3b86065be12de36874756e8e06ec82aa1dc912cd 100644 (file)
@@ -186,7 +186,7 @@ notmuch_status_t
 notmuch_database_open_with_config (const char *database_path,
                                   notmuch_database_mode_t mode,
                                   const char *config_path,
-                                  unused(const char *profile),
+                                  const char *profile,
                                   notmuch_database_t **database,
                                   char **status_string)
 {