« Previous | Next » 

Revision c075a723

IDc075a7239937e6ae45bcd3793c37b0168bfae93d

Added by Blue Swirl over 11 years ago

configure: fix double check tests with Clang

Configuring with Clang compiler with Werror would not work after
improved checks:
/tmp/qemu-conf--25992
.c:4:32: error: self-comparison always evaluates
to true [-Werror,-Wtautological-compare]
int main(void) { return preadv preadv; }
/tmp/qemu-conf--25992-.c:13:26: error: self-comparison always
evaluates to true [-Werror,-Wtautological-compare]
return epoll_create1 epoll_create1;
/tmp/qemu-conf--25992-.c:3:13: error: explicitly assigning a variable
of type 'char **' to itself [-Werror,-Wself-assign]
environ = environ;

Avoid the errors by adjusting the tests.

Reviewed-by: Peter Maydell <>
Signed-off-by: Blue Swirl <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences