Avoid more warnings in flex-generated code.
authorCarl Worth <cworth@cworth.org>
Wed, 21 Jul 2010 20:11:46 +0000 (13:11 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Jul 2010 20:11:46 +0000 (13:11 -0700)
commitb4a08a0d87908b024a3d2595073b1beb6eda161e
tree97b528f0e3a4fa8d4018f7a6de60db39ea2a8d7b
parent3c716a7ec2cabfc18a2506f9db655406f8c64fb0
Avoid more warnings in flex-generated code.

This avoids two "function defined but not used" warnings. For the yyinput
function we define YY_NO_INPUT which tells flex to simply not generate this
function.

For unput, we add a call to this function, but inside a while(0) so
that it will quiet the warning without actually changing any
functionality.
src/mesa/program/program_lexer.l