[patch] mark unused var in natPipeImplPosix
Andreas Tobler
toa@pop.agri.ch
Fri Mar 4 21:42:00 GMT 2005
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
More information about the Java-patches
mailing list