tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] warnings w/ tcc-0.9.22 compile


From: joe
Subject: [Tinycc-devel] warnings w/ tcc-0.9.22 compile
Date: Thu, 2 Dec 2004 20:04:23 -0800
User-agent: Mutt/1.3.28i

Hello list,

When I compiled v. 0.9.21 I found many warnings (Knoppix 3.6 and Mandrake
9.0). I was going to send a mail, then noticed 0.9.22 is out!

So I compiled that (much better), still 1 warning though, and errors in
'make test'. This is on Knoppix 3.6 gcc version 3.3.4 (Debian 1:3.3.4-9).

The below listing captures the screen, from configure, to make, to
'make test'. To avoid long lines I formatted the text so output lines
start on column 3, their continuations prefixed with '+   '.

Hope this helps,

-- Joe


$ ./configure --prefix=/home/knoppix/extra/tcc-0.9.22
  Binary  directory   /home/knoppix/extra/tcc-0.9.22/bin
  Library directory   /home/knoppix/extra/tcc-0.9.22/lib
  Include directory   /home/knoppix/extra/tcc-0.9.22/include
  Manual directory    /home/knoppix/extra/tcc-0.9.22/man
  Doc directory       /home/knoppix/extra/tcc-0.9.22/share/doc/tcc
  Source path      /home/knoppix/recent/tcc/u/tcc-0.9.22
  C compiler       gcc
  make             make
  CPU              x86
  Big Endian       no
  gprof enabled    no
  Creating config.mak and config.h

$ make ...
  (warning from the make)

  gcc -O2 -g -Wall -mpreferred-stack-boundary=2 -march=i386 -falign-
+   functions=0 -fno-strict-aliasing -DLIBTCC -c -o libtcc.o tcc.c
  tcc.c:961: warning: `strstart' defined but not used


$ make test
  gcc -O2 -g -Wall -mpreferred-stack-boundary=2 -march=i386 -falign-
+   functions=0 -fno-strict-aliasing -I. -o tcctest.ref tcctest.c
  tcctest.c:266:5: warning: multi-line comment
  tcctest.c: In function `string_test':
  tcctest.c:308: warning: wint_t format, long int arg (arg 2)
  tcctest.c:308: warning: wint_t format, long int arg (arg 4)
  tcctest.c: In function `isid':
  tcctest.c:634: warning: suggest parentheses around comparison in
+   operand of &
  tcctest.c:634: warning: suggest parentheses around comparison in
+   operand of &
  tcctest.c:634: warning: suggest parentheses around comparison in
+   operand of |
  tcctest.c: At top level:
  tcctest.c:964: warning: return type defaults to `int'
  tcctest.c:974: warning: return type defaults to `int'
  tcctest.c: In function `struct_assign_test':
  tcctest.c:1022: warning: unused variable `lsta1'
  tcctest.c: In function `cast_test':
  tcctest.c:1076: warning: overflow in implicit constant conversion
  tcctest.c:1084: warning: array subscript has type `char'
  tcctest.c: At top level:
  tcctest.c:1103: warning: braces around scalar initializer
  tcctest.c:1103: warning: (near initialization for `sinit3[2]')
  tcctest.c:1103: warning: braces around scalar initializer
  tcctest.c:1103: warning: (near initialization for `sinit3[2]')
  tcctest.c:1105: warning: missing braces around initializer
  tcctest.c:1105: warning: (near initialization for `sinit5[0]')
  tcctest.c:1129: warning: missing braces around initializer
  tcctest.c:1129: warning: (near initialization for `sinit16[0].a')
  tcctest.c:1135: warning: missing braces around initializer
  tcctest.c:1135: warning: (near initialization for `sinit17[0]')
  tcctest.c: In function `float_test':
  tcctest.c:1401: warning: this decimal constant is unsigned only in
+   ISO C90
  tcctest.c:1404: warning: this decimal constant is unsigned only in
+   ISO C90
  tcctest.c:1382: warning: unused variable `fb'
  tcctest.c: In function `longlong_test':
  tcctest.c:1573: warning: integer constant is too large for "long"
+   type
  tcctest.c: In function `vprintf1':
  tcctest.c:1649: warning: implicit declaration of function `putchar'
  tcctest.c:1685:32: missing terminating " character
  tcctest.c:1686:1: missing terminating " character
  tcctest.c:1688:11: missing terminating " character
  tcctest.c:1689:1: missing terminating " character
  tcctest.c:1692:32: missing terminating " character
  tcctest.c:1694:1: missing terminating " character
  tcctest.c: In function `whitespace_test':
  tcctest.c:1666: warning: unused variable `str'
  tcctest.c: In function `asm_test':
  tcctest.c:1916: warning: integer constant is too large for "long"
+   type
  tcctest.c: At top level:
  tcctest.c:909: warning: `tab_reinit' defined but not used
  make: *** [tcctest.ref] Error 1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]