From: Ian Romanick Date: Wed, 7 Apr 2010 23:53:54 +0000 (-0700) Subject: Add tracking for extension based warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c178c74c27ab292651dcf7da02a7d035366cae04;p=mesa.git Add tracking for extension based warnings Using '#extension foo: warn' instructs the compiler to generate a warning when some feature of the extension 'foo' is used. This patch adds some infrastructure needed to support that for variables. Similar changes will be needed for types and built-in functions. --- diff --git a/ir.h b/ir.h index fee23b25829..13d07155a42 100644 --- a/ir.h +++ b/ir.h @@ -156,6 +156,11 @@ public: */ unsigned array_lvalue:1; + /** + * Emit a warning if this variable is accessed. + */ + const char *warn_extension; + /** * Value assigned in the initializer of a variable declared "const" */