apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: cvs commit: apache-2.0/src/lib/aputil apu_private.hw
Date Thu, 30 Nov 2000 17:42:22 GMT
On Thu, Nov 30, 2000 at 04:03:13AM -0800, Greg Stein wrote:
> On Wed, Nov 29, 2000 at 01:55:22PM -0800, William A. Rowe, Jr. wrote:
> >...
> > src\lib\apr\misc\unix\getopt.c(65) : warning C4090: 'function' : different 'const'
qualifiers
> > src\lib\apr\misc\unix\getopt.c(65) : warning C4022: 'memcpy' : pointer mismatch
for actual parameter 1
> > 
> > src\modules\mpm\winnt\service.c(605) : warning C4090: 'function' : different 'const'
qualifiers
> > src\modules\mpm\winnt\service.c(605) : warning C4022: 'memcpy' : pointer mismatch
for actual parameter 1
> > 
> > and ditto at (609), (706), (709), (713) and (1072)
> 
> Euh... those warnings are wrong. We pass in "const char **" for memcpy()'s
> first parameters which is a "void *". The two "should be" compatible.
> 
> Grr... anybody have any ideas on how best to solve the problem? (seems like
> a problem with the compiler itself)

Ooh... I may know what this is. I changed a few lines that looked like:

    char const *foo;

to the standard Apache-style: (hell, everybody's style)

    const char *foo;

Do you think that if we put a few of the decls back to the former style,
that the warnings will go away?

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

Mime
View raw message