The Sun Studio 12 C++ compiler on Solaris 10 warns in a couple places that a function with a C++ prototype is being assigned to something that expects an extern "C" prototype. In each case, it's an instance of the function prototypes not being correctly specified as extern "C":
Compiling image.cxx...
"image.cxx", line 1388: Warning (Anachronism), wbadasg: Assigning void()(jpeg_c
ommon_struct) to extern "C" void()(jpeg_common_struct).
1 Warning(s) detected.
Compiling teststyle.cxx...
"ps-pdf.cxx", line 10237: Warning (Anachronism), wbadasg: Assigning void()(jpeg
_compress_struct) to extern "C" void()(jpeg_compress_struct).
"ps-pdf.cxx", line 10238: Warning (Anachronism), wbadasg: Assigning int()(jpeg_
compress_struct) to extern "C" int()(jpeg_compress_struct).
"ps-pdf.cxx", line 10239: Warning (Anachronism), wbadasg: Assigning void()(jpeg
_compress_struct) to extern "C" void()(jpeg_compress_struct).
3 Warning(s) detected.
I have a patch that just wraps the prototypes with extern "C", I can
supply it if you're interested.
Version: 1.9-current Original reporter:
The Sun Studio 12 C++ compiler on Solaris 10 warns in a couple places that a function with a C++ prototype is being assigned to something that expects an extern "C" prototype. In each case, it's an instance of the function prototypes not being correctly specified as extern "C":
Compiling image.cxx... "image.cxx", line 1388: Warning (Anachronism), wbadasg: Assigning void()(jpeg_c ommon_struct) to extern "C" void()(jpeg_common_struct). 1 Warning(s) detected.
Compiling teststyle.cxx... "ps-pdf.cxx", line 10237: Warning (Anachronism), wbadasg: Assigning void()(jpeg _compress_struct) to extern "C" void()(jpeg_compress_struct). "ps-pdf.cxx", line 10238: Warning (Anachronism), wbadasg: Assigning int()(jpeg_ compress_struct) to extern "C" int()(jpeg_compress_struct). "ps-pdf.cxx", line 10239: Warning (Anachronism), wbadasg: Assigning void()(jpeg _compress_struct) to extern "C" void()(jpeg_compress_struct). 3 Warning(s) detected.
I have a patch that just wraps the prototypes with extern "C", I can supply it if you're interested.