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