[NTG-pdftex] pdftex: compile errors/warnings

Martin Schroeder ms@artcom-gmbh.de
Thu, 17 Jul 2003 12:19:16 +0200


On 2003-07-16 15:38:27 +0200, Martin Schröder wrote:
> On 2003-07-15 22:14:27 +0200, Thomas Esser wrote:
> > "/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/pdftoepdf.cc", line 195: Warning: String literal converted to char* in formal argument fmt in call to pdftex_fail(char*, ...).
> > "/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/pdftoepdf.cc", line 266: Warning: String literal converted to char* in formal argument fmt in call to pdftex_fail(char*, ...).
> > "/share/gcc-te-remove-me/teTeX/tetex-src/texk/web2c/pdftexdir/pdftoepdf.cc", line 296: Warning: String literal converted to char* in formal argument 1 in call to pdf_puts(char*).
> > ...and many more of warnings of this kind...
> 
> I've changed the definition of pdftex_fail et.al to const char*
> -- hope it helps.

I think I've removed the cause for all of these warnings (aside
from some warnings in pdftoepdf.cc; xpdf would need major fixes
for these).

For the record: The gcc switches to use are 
        -Wall -pedantic -Wwrite-strings

Best regards
        Martin
-- 
               Martin Schröder, MS@ArtCom-GmbH.DE
     ArtCom GmbH, Lise-Meitner-Str 5, 28359 Bremen, Germany
          Voice +49 421 20419-44 / Fax +49 421 20419-10