Re: [Mesa-dev] glcpp's handling of #elif with no expression

2012-11-27 Thread Carl Worth
Matt Turner writes: > Here's the write-up of what I was seeing earlier today for my own record. > > #if 1 > #elif > #endif > > gives "0:2(1): preprocessor warning: ignoring illegal #elif without > expression". gcc rejects it, but glcpp just warns since #if is true > and it doesn't need to evaluate

[Mesa-dev] glcpp's handling of #elif with no expression

2012-11-26 Thread Matt Turner
Carl, Here's the write-up of what I was seeing earlier today for my own record. #if 1 #elif #endif gives "0:2(1): preprocessor warning: ignoring illegal #elif without expression". gcc rejects it, but glcpp just warns since #if is true and it doesn't need to evaluate #elif's nonexistent expressio