[libsoup] tests: remove a redundant GOptionEntry flag that now causes a warning



commit b4503671b1f2b5a907dc7a44c07dbc473f680282
Author: Dan Winship <danw gnome org>
Date:   Fri Mar 11 07:03:29 2011 -0500

    tests: remove a redundant GOptionEntry flag that now causes a warning

 tests/forms-test.c         |    2 +-
 tests/redirect-test.c      |    2 +-
 tests/server-auth-test.c   |    2 +-
 tests/xmlrpc-server-test.c |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/forms-test.c b/tests/forms-test.c
index 6cdc6ad..4c2846e 100644
--- a/tests/forms-test.c
+++ b/tests/forms-test.c
@@ -422,7 +422,7 @@ md5_callback (SoupServer *server, SoupMessage *msg,
 static gboolean run_tests = TRUE;
 
 static GOptionEntry no_test_entry[] = {
-        { "no-tests", 'n', G_OPTION_FLAG_NO_ARG | G_OPTION_FLAG_REVERSE,
+        { "no-tests", 'n', G_OPTION_FLAG_REVERSE,
           G_OPTION_ARG_NONE, &run_tests,
           "Don't run tests, just run the test server", NULL },
         { NULL }
diff --git a/tests/redirect-test.c b/tests/redirect-test.c
index 63a92c1..f99d9c7 100644
--- a/tests/redirect-test.c
+++ b/tests/redirect-test.c
@@ -334,7 +334,7 @@ server2_callback (SoupServer *server, SoupMessage *msg,
 static gboolean run_tests = TRUE;
 
 static GOptionEntry no_test_entry[] = {
-        { "no-tests", 'n', G_OPTION_FLAG_NO_ARG | G_OPTION_FLAG_REVERSE,
+        { "no-tests", 'n', G_OPTION_FLAG_REVERSE,
           G_OPTION_ARG_NONE, &run_tests,
           "Don't run tests, just run the test server", NULL },
         { NULL }
diff --git a/tests/server-auth-test.c b/tests/server-auth-test.c
index 4122b16..89e5943 100644
--- a/tests/server-auth-test.c
+++ b/tests/server-auth-test.c
@@ -320,7 +320,7 @@ request_started_callback (SoupServer *server, SoupMessage *msg,
 static gboolean run_tests = TRUE;
 
 static GOptionEntry no_test_entry[] = {
-        { "no-tests", 'n', G_OPTION_FLAG_NO_ARG | G_OPTION_FLAG_REVERSE,
+        { "no-tests", 'n', G_OPTION_FLAG_REVERSE,
           G_OPTION_ARG_NONE, &run_tests,
           "Don't run tests, just run the test server", NULL },
         { NULL }
diff --git a/tests/xmlrpc-server-test.c b/tests/xmlrpc-server-test.c
index 02751f1..9eae702 100644
--- a/tests/xmlrpc-server-test.c
+++ b/tests/xmlrpc-server-test.c
@@ -301,7 +301,7 @@ do_xmlrpc_tests (SoupURI *uri)
 gboolean run_tests = TRUE;
 
 static GOptionEntry no_test_entry[] = {
-        { "no-tests", 'n', G_OPTION_FLAG_NO_ARG | G_OPTION_FLAG_REVERSE,
+        { "no-tests", 'n', G_OPTION_FLAG_REVERSE,
           G_OPTION_ARG_NONE, &run_tests,
           "Don't run tests, just run the test server", NULL },
         { NULL }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]