From: grunwald@foobar.cs.colorado.edu (Dirk Grunwald)
Subject: cxx/cc/c89 on Alpha/OSF1
Date: Sun, 29 Aug 1993 19:27:09 GMT [thread overview]
Message-ID: <GRUNWALD.93Aug29132703@foobar.cs.colorado.edu> (raw)
The following short programs illustrates a problem with 'cxx' (DEC C++)
and 'c89' (ANSI C) on the Alpha running OSF V1.3. This doesn't occur
with 'cc'.
My questions:
+ what's the diff between cc & c89?
+ is there an update to fix these problems?
[foobar-180] cat foo.C
#include <values.h>
main()
{
int i = MAXINT;
}
[foobar-181] cxx -c foo.C
foo.C:5: warning: In the initializer for i, integer overflow occurs in evaluating the expression "1<<(8*sizeof(int))-1".
foo.C:6: warning: The procedure "main" returns a non-void value but does not contain a return statement.
[foobar-182] ln -s foo.C foo.c
[foobar-183] cc -c foo.c
[foobar-184] c89 -c foo.c
foo.c:5: warning: In the initializer for i, integer overflow occurs in evaluating the expression "1<<(8*sizeof(int))-1".
reply other threads:[~1993-08-29 19:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox