From: Dan Winship Date: Fri, 11 Mar 2011 12:03:29 +0000 (-0500) Subject: tests: remove a redundant GOptionEntry flag that now causes a warning X-Git-Tag: LIBSOUP_2_33_92~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4503671b1f2b5a907dc7a44c07dbc473f680282;p=platform%2Fupstream%2Flibsoup.git tests: remove a redundant GOptionEntry flag that now causes a warning --- 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 }