AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
December 1994

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



1994.12.16 11:07 "patch for tif_lzw.c warning under SunPro C", by Glenn Herteg

Here's a small patch to avoid the following error message from the SunPro C
compiler:

acc  -I.    -c tif_lzw.c -o tif_lzw.o
"tif_lzw.c", line 225: warning: macro replacement within a string literal

I've simply capitalized the "code" within the string literal, so it doesn't
match the formal macro argument.

glenn@luna % diff -c tif_lzw.c_orig tif_lzw.c
*** tif_lzw.c_orig	Thu Sep 29 17:01:38 1994
--- tif_lzw.c	Fri Dec 16 02:41:22 1994
***************
*** 225,231 ****
  #define	NextCode(tif, sp, bp, code, get) {				\
  	if ((sp)->dec_bitsleft < nbits) {				\
  		TIFFWarning(tif->tif_name,				\
! 		    "LZWDecode: Strip %d not terminated with EOI code", \
  		    tif->tif_curstrip);					\
  		code = CODE_EOI;					\
  	} else {							\
--- 225,231 ----
  #define	NextCode(tif, sp, bp, code, get) {				\
  	if ((sp)->dec_bitsleft < nbits) {				\
  		TIFFWarning(tif->tif_name,				\
! 		    "LZWDecode: Strip %d not terminated with EOI Code", \
  		    tif->tif_curstrip);					\
  		code = CODE_EOI;					\
  	} else {							\

Glenn Herteg
IA Corporation
glenn@lia.com