[cups.general] compilation warnings on sunos5.8,probably not significant?

Michael Sweet mike at easysw.com
Wed Aug 2 13:21:35 PDT 2006


wtautz wrote:
> Hi, While compiling with Sun's compiler on SunOS5.8 I noticed: (for
> cups-1.2.2)
> 
> 
> Compiling GfxFont.cxx...
> "GfxFont.cxx", line 1276: Warning (Anachronism): Formal argument 4 of
> type extern "C" int(*)(const void*,const void*) in call to
> std::qsort(void*, unsigned, unsigned, extern "C" int(*)(const
> void*,const void*)) is being passed int(*)(const void*,const void*).
> "GfxFont.cxx", line 1360: Warning (Anachronism): Formal argument 4 of
> type extern "C" int(*)(const void*,const void*) in call to
> std::qsort(void*, unsigned, unsigned, extern "C" int(*)(const
> void*,const void*)) is being passed int(*)(const void*,const void*).
> 2 Warning(s) detected.
> Compiling GfxState.cxx...
> Compiling GHash.cxx...
> Compiling GList.cxx...
> "GList.cxx", line 86: Warning (Anachronism): Formal argument 4 of type
> extern "C" int(*)(const void*,const void*) in call to std::qsort(void*,
> unsigned, unsigned, extern "C" int(*)(const void*,const void*)) is being
> passed int(*)(const void*,const void*).
> 1 Warning(s) detected.

Yes, safe to ignore, and unfortunately not something that we can
turn off in the compiler.  qsort() is a C function, while the sort
functions are C++, and the compiler is issuing a warning in case
a vendor decided to use a different calling convention for C and
C++ functions...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com




More information about the cups mailing list