commit-classpath
[Top][All Lists]
Advanced

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

Re: jni-h-fix-warning-1.patch


From: Tom Tromey
Subject: Re: jni-h-fix-warning-1.patch
Date: 12 May 2004 16:34:22 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Steven" == Steven Augart <address@hidden> writes:

Steven> * include/jni.h.in: Fix a warning you otherwise get when compiling
Steven> with gcc (not g++) with the -Wstrict-prototypes flag.

_Jv_func is used only as a placeholder for reserved functions in
various structs.  Sun uses "void *" here, but I think that is
pedantically incorrect, since there is no guarantee that a void* and a
function pointer have the same size.  Of course that brings up the
problem: perhaps we're being incompatible (with a buggy
implementation), and we should just use `void *' ourselves.

Another option would be to unconditionally use `(void)' for both C
and C++.  That would be a little cleaner, one less ifdef.

Tom




reply via email to

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