configure: Remove unused parameters from main function
authorStefan Weil <sw@weilnetz.de>
Mon, 15 Oct 2012 05:45:40 +0000 (07:45 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 19 Oct 2012 08:38:53 +0000 (10:38 +0200)
This modification is required if compiler option -Wunused-parameter is activated.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
configure

index 353d7889f77c63d62f3afcfa81c1770714c2a0ca..499ad811a099f80f410909b336c907502a792231 100755 (executable)
--- a/configure
+++ b/configure
@@ -1323,7 +1323,7 @@ if test -z "$cross_prefix" ; then
 # big/little endian test
 cat > $TMPC << EOF
 #include <inttypes.h>
-int main(int argc, char ** argv){
+int main(void) {
         volatile uint32_t i=0x01234567;
         return (*((uint8_t*)(&i))) == 0x67;
 }
@@ -2896,7 +2896,7 @@ static int sfaa(int *ptr)
   return __sync_fetch_and_and(ptr, 0);
 }
 
-int main(int argc, char **argv)
+int main(void)
 {
   int val = 42;
   sfaa(&val);