Re: [Mesa-dev] [PATCH 2/2] glsl: Add pragma to disable all warnings

2018-11-05 Thread Matt Turner
On Thu, Nov 1, 2018 at 3:37 PM Ian Romanick wrote: > > From: Ian Romanick > > warnings. This is a big hammer. If we ever need a smaller hammer, we I bet there was a line in the commit message before this that started with '#pragma', which git commit interpreted as a comment. > can enhance

[Mesa-dev] [PATCH 2/2] glsl: Add pragma to disable all warnings

2018-11-01 Thread Ian Romanick
From: Ian Romanick warnings. This is a big hammer. If we ever need a smaller hammer, we can enhance this functionality. There is one lame thing about this. Because we parse everything, create an AST, then convert the AST to GLSL IR, we have to treat the #pragma like a statment. This means