diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2010-05-09 22:59:15 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2010-05-09 22:59:15 +0000 |
commit | 6d3d1caf1b1b0b04fe9b92c96325edbb5584a0d5 (patch) | |
tree | 824581a6b6661f19df3f1d0d533ecc9b90e4d4b2 /converter | |
parent | f75a0421bb68460a50c1d11204375ab277a8ef3d (diff) | |
download | netpbm-mirror-6d3d1caf1b1b0b04fe9b92c96325edbb5584a0d5.tar.gz netpbm-mirror-6d3d1caf1b1b0b04fe9b92c96325edbb5584a0d5.tar.xz netpbm-mirror-6d3d1caf1b1b0b04fe9b92c96325edbb5584a0d5.zip |
Fix build error introduced by recent warning silencing
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1207 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r-- | converter/pbm/thinkjettopbm.l | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/converter/pbm/thinkjettopbm.l b/converter/pbm/thinkjettopbm.l index e9b44f23..c7f1b373 100644 --- a/converter/pbm/thinkjettopbm.l +++ b/converter/pbm/thinkjettopbm.l @@ -47,8 +47,14 @@ undefined. (Simply leaving them undefined typically works anyway, but it is a problem if you use compiler options that say to fail when someone uses a macro he failed to define). + + We'd like to define YY_NO_UNPUT so as not to generate the unput function, + which we don't use, and avoid a compiler warning about defining and not + using it. Alas, Flex 2.5.35 ignores YY_NO_UNPUT and generates the unput + function anyway. So we have to have a bogus reference to silence the + unused function compiler warning. And that means we have to generate + the function always. Flex 2.5.4 does respect YY_NO_UNPUT. */ -#define YY_NO_UNPUT #define YY_NO_INPUT 1 #define YY_STACK_USED 0 #define YY_ALWAYS_INTERACTIVE 0 |