This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] mark unused var in natPipeImplPosix


Tom Tromey wrote:
"Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:


Andreas> +gnu::java::nio::VMPipe::init (gnu::java::nio::PipeImpl *self
Andreas> +			      __attribute__ ((unused)),

Just remove the argument name instead, as is done for the other
argument.

Like this:


diff -u -r1.2 natPipeImplPosix.cc
--- gnu/java/nio/natPipeImplPosix.cc    24 Sep 2004 06:41:57 -0000      1.2
+++ gnu/java/nio/natPipeImplPosix.cc    4 Mar 2005 21:31:42 -0000
@@ -23,8 +23,9 @@
 #include <java/nio/channels/spi/SelectorProvider.h>

void
-gnu::java::nio::VMPipe::init (gnu::java::nio::PipeImpl *self,
- ::java::nio::channels::spi::SelectorProvider* /*provider*/)
+gnu::java::nio::VMPipe::init (gnu::java::nio::PipeImpl*, /*self*/
+ ::java::nio::channels::spi::SelectorProvider*
+ /*provider*/)
{
int filedes [2];



Is this code supposed to just be a stub? That seems weird.

Huh.... I just kill the warnings.


Andreas


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]