Patchwork configure: Remove unused parameters from main function

login
register
mail settings
Submitter Stefan Weil
Date Oct. 15, 2012, 5:45 a.m.
Message ID <1350279940-24134-1-git-send-email-sw@weilnetz.de>
Download mbox | patch
Permalink /patch/191467/
State Accepted
Headers show

Comments

Stefan Weil - Oct. 15, 2012, 5:45 a.m.
This modification is required if compiler option -Wunused-parameter is activated.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 configure |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Stefan Hajnoczi - Oct. 19, 2012, 8:38 a.m.
On Mon, Oct 15, 2012 at 07:45:40AM +0200, Stefan Weil wrote:
> This modification is required if compiler option -Wunused-parameter is activated.
> 
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>  configure |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches

Stefan

Patch

diff --git a/configure b/configure
index 353d788..499ad81 100755
--- 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);