[PATCH 2/2] Fixed warnings for test/symbol-test.cc.
Amadeusz Żołnowski
aidecoe at aidecoe.name
Fri Nov 25 02:54:52 PST 2011
---
test/symbol-test.cc | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/test/symbol-test.cc b/test/symbol-test.cc
index 1de06ea..bfbe38f 100644
--- a/test/symbol-test.cc
+++ b/test/symbol-test.cc
@@ -1,14 +1,13 @@
#include <stdio.h>
#include <xapian.h>
#include <notmuch.h>
-main (int argc, char **argv){
+int main (){
- notmuch_database_t *notmuch
- = notmuch_database_open ("fakedb",
- NOTMUCH_DATABASE_MODE_READ_ONLY);
+ //notmuch_database_t *notmuch =
+ notmuch_database_open ("fakedb", NOTMUCH_DATABASE_MODE_READ_ONLY);
try{
- (void)new Xapian::WritableDatabase ("./nonexistant", Xapian::DB_OPEN);
+ (void)new Xapian::WritableDatabase ("./nonexistant", Xapian::DB_OPEN);
} catch (const Xapian::Error &error) {
printf("caught %s\n",error.get_msg().c_str());
return 0;
--
1.7.8.rc3
More information about the notmuch
mailing list