projects
/
oweals
/
cde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes for warnings related to -Wimplicit-int.
[oweals/cde.git]
/
cde
/
programs
/
dtksh
/
ksh93
/
ship
/
shipfeature.sh
diff --git
a/cde/programs/dtksh/ksh93/ship/shipfeature.sh
b/cde/programs/dtksh/ksh93/ship/shipfeature.sh
index 0e077d80d7cab9aee9e1e3a0484128175c425a9c..fc1a26be14dd4a019d9606cd98de82a14623e4ce 100644
(file)
--- a/
cde/programs/dtksh/ksh93/ship/shipfeature.sh
+++ b/
cde/programs/dtksh/ksh93/ship/shipfeature.sh
@@
-435,7
+435,7
@@
$1"
?*) z=$lib
e=
lib=
?*) z=$lib
e=
lib=
- echo "main(){return(0);}" > $tmp.c
+ echo "
int
main(){return(0);}" > $tmp.c
for x in $z
do case $x in
-) case $lib in
for x in $z
do case $x in
-) case $lib in
@@
-854,7
+854,7
@@
extern int $v;
#endif"
;;
esac
#endif"
;;
esac
- echo "main(){char* i = (char*)&$v; return i!=0;}"
+ echo "
int
main(){char* i = (char*)&$v; return i!=0;}"
} > $tmp.c
$cc -c $tmp.c <&$nullin >&$nullout &&
rm -f $tmp.exe
} > $tmp.c
$cc -c $tmp.c <&$nullin >&$nullout &&
rm -f $tmp.exe
@@
-1109,7
+1109,7
@@
static struct xxx v;
struct xxx* f() { return &v; }"
;;
esac
struct xxx* f() { return &v; }"
;;
esac
- echo "main() { f(); return 0; }"
+ echo "
int
main() { f(); return 0; }"
} > $tmp.c
rm -f $tmp.exe
if $cc -o $tmp.exe $tmp.c <&$nullin >&$nullout &&
} > $tmp.c
rm -f $tmp.exe
if $cc -o $tmp.exe $tmp.c <&$nullin >&$nullout &&