Skip to content
  • Stefan Weil's avatar
    8a0afbb2
    Fix broken configure with -Wunused-parameter · 8a0afbb2
    Stefan Weil authored
    
    
    The configure script fails because it tries to compile small C programs
    with a main function which is declared with arguments argc and argv
    although those arguments are unused.
    
    Running `configure -extra-cflags=-Wunused-parameter` triggers the problem.
    configure for a native build does abort but shows the error in config.log.
    A cross build configure for Windows with Debian stable aborts with an
    error.
    
    Avoiding unused arguments fixes this.
    
    Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
    Message-Id: <20221102202258.456359-1-sw@weilnetz.de>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    8a0afbb2
    Fix broken configure with -Wunused-parameter
    Stefan Weil authored
    
    
    The configure script fails because it tries to compile small C programs
    with a main function which is declared with arguments argc and argv
    although those arguments are unused.
    
    Running `configure -extra-cflags=-Wunused-parameter` triggers the problem.
    configure for a native build does abort but shows the error in config.log.
    A cross build configure for Windows with Debian stable aborts with an
    error.
    
    Avoiding unused arguments fixes this.
    
    Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
    Message-Id: <20221102202258.456359-1-sw@weilnetz.de>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Loading