From: Ian Lynagh Date: Mon, 15 Jun 2009 20:16:34 +0000 (+0000) Subject: Fix warnings in C programs generated by configure; fixes failures with -Werror X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=a6e063fec0e1df9153380210810bfcc04cfcd823;p=ghc-base.git Fix warnings in C programs generated by configure; fixes failures with -Werror --- diff --git a/aclocal.m4 b/aclocal.m4 index 49ad919..211ba92 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -135,9 +135,11 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include # include #endif +#include + typedef $1 testing; -main() { +int main(void) { FILE *f=fopen("conftestval", "w"); if (!f) exit(1); if (((testing)((int)((testing)1.4))) == ((testing)1.4)) {