projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccc931d
)
Fix warnings in C programs generated by configure; fixes failures with -Werror
author
Ian Lynagh
<igloo@earth.li>
Mon, 15 Jun 2009 20:16:34 +0000
(20:16 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Mon, 15 Jun 2009 20:16:34 +0000
(20:16 +0000)
aclocal.m4
patch
|
blob
|
history
diff --git
a/aclocal.m4
b/aclocal.m4
index
49ad919
..
211ba92
100644
(file)
--- a/
aclocal.m4
+++ b/
aclocal.m4
@@
-135,9
+135,11
@@
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
# include <sys/resource.h>
#endif
+#include <stdlib.h>
+
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)) {