bunch of warning fixes
This commit is contained in:
parent
7ec1ae3771
commit
7564594bb8
8
Build.sh
8
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.501 2011/12/31 02:04:16 tg Exp $'
|
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.502 2011/12/31 02:54:15 tg Exp $'
|
||||||
#-
|
#-
|
||||||
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
|
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
|
||||||
# Thorsten Glaser <tg@mirbsd.org>
|
# Thorsten Glaser <tg@mirbsd.org>
|
||||||
@ -1174,7 +1174,7 @@ else
|
|||||||
#define EXTERN
|
#define EXTERN
|
||||||
#define MKSH_INCLUDES_ONLY
|
#define MKSH_INCLUDES_ONLY
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.501 2011/12/31 02:04:16 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.502 2011/12/31 02:54:15 tg Exp $");
|
||||||
int main(void) { printf("Hello, World!\n"); return (0); }
|
int main(void) { printf("Hello, World!\n"); return (0); }
|
||||||
EOF
|
EOF
|
||||||
case $cm in
|
case $cm in
|
||||||
@ -1570,9 +1570,9 @@ ac_testnnd silent_idivwrapv '' '(run-time) whether signed integer division overf
|
|||||||
}
|
}
|
||||||
#ifdef SIGFPE
|
#ifdef SIGFPE
|
||||||
static const char fpe_msg[] = "no, got SIGFPE, what were they smoking?";
|
static const char fpe_msg[] = "no, got SIGFPE, what were they smoking?";
|
||||||
|
#define fpe_msglen (sizeof(fpe_msg) - 1)
|
||||||
static void fpe_catcher(int sig MKSH_A_UNUSED) {
|
static void fpe_catcher(int sig MKSH_A_UNUSED) {
|
||||||
write(1, fpe_msg, sizeof(fpe_msg) - 1);
|
_exit(write(1, fpe_msg, fpe_msglen) == fpe_msglen ? 2 : 3);
|
||||||
_exit(2);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user