This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/21428] New: bogus warning: unused parameter 'this'
- From: "kon at iki dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 6 May 2005 21:04:33 -0000
- Subject: [Bug java/21428] New: bogus warning: unused parameter 'this'
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
kalle@Astalo:~/pikkuohjelmat/java/TESTIT$ echo 'class foo {}' > foo.java
kalle@Astalo:~/pikkuohjelmat/java/TESTIT$ gcj -v -O2 -Wall -W -c foo.java
Using built-in specs.
Reading specs from
/home/kalle/stow/gcc/i686-pc-linux-gnu/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../../../libgcj.spec
rename spec lib to liborig
Target: i686-pc-linux-gnu
Configured with: /home/kalle/src/FOREIGN-CVS/gcc/configure --prefix=/home/kalle
--exec-prefix=/home/kalle/i686-pc-linux-gnu --host=i686-pc-linux-gnu
--build=i686-pc-linux-gnu --with-x-toolkit=gtk --with-gjdoc
--enable-java-awt=gtk,xlib
Thread model: posix
gcc version 4.1.0 20050505 (experimental)
/home/kalle/stow/gcc/i686-pc-linux-gnu/bin/../libexec/gcc/i686-pc-linux-gnu/4.1.0/jc1 foo.java -fhash-synchronization -fno-use-divide-subroutine -fuse-boehm-gc
-fnon-call-exceptions -fno-omit-frame-pointer -fkeep-inline-functions -quiet
-dumpbase foo.java -mtune=pentiumpro -auxbase foo -O2 -Wall -W -version -o
/tmp/ccProouV.s
GNU Java version 4.1.0 20050505 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 4.1.0 20050430 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Class path starts here:
/home/kalle/pikkuohjelmat/java/
/home/kalle/stow/gcc/i686-pc-linux-gnu/bin/../lib/gcc/../../../share/java/libgcj-4.1.0.jar/ (system) (zip)
foo.java: In class 'foo':
foo.java: In constructor '()':
foo.java:0: warning: unused parameter â**thisâ**
as -V -Qy -o foo.o /tmp/ccProouV.s
GNU assembler version 2.15 (i386-linux) using BFD version 2.15
kalle@Astalo:~/pikkuohjelmat/java/TESTIT$
GCJ should not output that warning.
This causes trouble when building gjdoc with "CFLAGS=-O2 -g -Wall -W"
in the environment. For some reason, Libtool 1.5.6 passes $CFLAGS to
the Java compiler when checking whether it supports the -c and -o
options together. Because of the warning, Libtool assumes the
compiler did not support the options. This breaks the build later
because --resource requires -o.
--
Summary: bogus warning: unused parameter 'this'
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kon at iki dot fi
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21428