glsl: Don't emit empty declaration warning for a struct specifier
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 27 Nov 2013 19:22:27 +0000 (11:22 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 6 Dec 2013 16:06:54 +0000 (08:06 -0800)
commit758658850bd5ba64bf2e8c04516ea1292aedcfc3
treea4936ae74c07faa9a426fa72da8251132f99d8d3
parent453651e5212269c029e363d2227906a0ddb76204
glsl: Don't emit empty declaration warning for a struct specifier

The intention is that things like

   int;

will generate a warning.  However, we were also accidentally emitting
the same warning for things like

  struct Foo { int x; };

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68838
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: Aras Pranckevicius <aras@unity3d.com>
Cc: "9.2 10.0" <mesa-stable@lists.freedesktop.org>
src/glsl/ast_to_hir.cpp