] scn.c:1: warning: ISO C forbids an empty source file

yeaaah, we #error out anyway, but…
This commit is contained in:
tg
2007-01-12 02:40:18 +00:00
parent e768017c58
commit ca7a9c3eb0

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# $MirOS: src/bin/mksh/Build.sh,v 1.105 2007/01/12 02:37:32 tg Exp $ # $MirOS: src/bin/mksh/Build.sh,v 1.106 2007/01/12 02:40:18 tg Exp $
#- #-
# Environment: CC, CFLAGS, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF # Environment: CC, CFLAGS, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF
# With -x (cross compile): TARGET_OS (default: uname -s) # With -x (cross compile): TARGET_OS (default: uname -s)
@ -211,9 +211,8 @@ NOWARN=$save_NOWARN
ac_testn mksh_full '' "if we're building without MKSH_SMALL" <<-'EOF' ac_testn mksh_full '' "if we're building without MKSH_SMALL" <<-'EOF'
#ifdef MKSH_SMALL #ifdef MKSH_SMALL
#error OK, we are building an extra small mksh. #error OK, we are building an extra small mksh.
#else
int main(void) { return (0); }
#endif #endif
int main(void) { return (0); }
EOF EOF
if test 0 = $HAVE_MKSH_FULL; then if test 0 = $HAVE_MKSH_FULL; then
@ -304,10 +303,9 @@ EOF
ac_test setmode mksh_full 1 <<-'EOF' ac_test setmode mksh_full 1 <<-'EOF'
#if defined(__MSVCRT__) || defined(__CYGWIN__) #if defined(__MSVCRT__) || defined(__CYGWIN__)
#error Win32 setmode() is different from what we need #error Win32 setmode() is different from what we need
#else #endif
#include <unistd.h> #include <unistd.h>
int main(int ac, char *av[]) { return (getmode(setmode(av[0]), ac)); } int main(int ac, char *av[]) { return (getmode(setmode(av[0]), ac)); }
#endif
EOF EOF
ac_test setresugid <<-'EOF' ac_test setresugid <<-'EOF'