]> git.notmuchmail.org Git - notmuch/blobdiff - database.cc
Add -Wswitch-enum and fix warnings.
[notmuch] / database.cc
index e1ea324d5163466ad784939d7e23830171026475..b1b95e9dd6fdf02dc3b1d1917f1cddb0adbf2e7a 100644 (file)
@@ -152,6 +152,8 @@ notmuch_status_to_string (notmuch_status_t status)
     switch (status) {
     case NOTMUCH_STATUS_SUCCESS:
        return "No error occurred";
+    case NOTMUCH_STATUS_OUT_OF_MEMORY:
+       return "Out of memory";
     case NOTMUCH_STATUS_XAPIAN_EXCEPTION:
        return "A Xapian exception occurred";
     case NOTMUCH_STATUS_FILE_ERROR: