michaelrsweet / htmldoc

HTML Conversion Software
https://www.msweet.org/htmldoc
GNU General Public License v2.0
208 stars 47 forks source link

a couple function prototypes require extern "C" #190

Closed michaelrsweet closed 14 years ago

michaelrsweet commented 15 years ago

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.

michaelrsweet commented 14 years ago

Original reporter: Michael Sweet

No longer part of the source...