diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-12-22 13:44:10 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-12-22 13:44:10 -0500 |
commit | b60e974d7996651fa29d62214cc3f99890b82c2b (patch) | |
tree | 9229a9b168595cc36d178a5063b3bafa23d7b5d2 /gcc/enquire.c | |
parent | 53117a2f4de1616ee110d5333b12bb592d301212 (diff) | |
download | gcc-b60e974d7996651fa29d62214cc3f99890b82c2b.tar.gz |
(main): Move declarations of SIZE and TOTAL to where they won't cause "unused" warnings when NO_MEM is defined.
(main): Move declarations of SIZE and TOTAL to where they won't cause
"unused" warnings when NO_MEM is defined.
(promotions): Explicitly declare return type (to avoid warnings).
Always return a value.
From-SVN: r6265
Diffstat (limited to 'gcc/enquire.c')
-rw-r--r-- | gcc/enquire.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/enquire.c b/gcc/enquire.c index 029fbd2ee91..46be9b04013 100644 --- a/gcc/enquire.c +++ b/gcc/enquire.c @@ -646,8 +646,6 @@ int maximum_int() { int main(argc, argv) int argc; char *argv[]; { int dprec, fprec, lprec; - unsigned int size; - long total; int i; char *s; int bad; #ifdef SIGFPE @@ -749,6 +747,8 @@ int main(argc, argv) int argc; char *argv[]; { } #ifndef NO_MEM if (V) { + unsigned int size; + long total; /* An extra goody: the approximate amount of data-space */ /* Allocate store until no more available */ /* Different implementations have a different argument type @@ -1062,8 +1062,8 @@ Procedure ftyperr(name, esize, size) char *name; int esize, size; { name, ftype_of(esize), ftype_of(size)); } -promotions() { - int si; long sl; +int promotions() { + int si = 0; long sl = 0; unsigned int ui; unsigned long ul; short ss; unsigned short us; @@ -1086,6 +1086,7 @@ promotions() { showtype("unsigned short promotes to", Promoted((unsigned short)0)); showtype("long+unsigned gives", sl+ui); + return 0; } #define checktype(x, n, s, t) if((sgn(x)!=s)||(sizeof(x)!=sizeof(t))) typerr(n, s, sizeof(t), sign_of(x), sizeof(x)); |