]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ir.cpp
Just mark LOCAL_RETURN noref instead of checking for '#' in the name
[xonotic/gmqcc.git] / ir.cpp
diff --git a/ir.cpp b/ir.cpp
index 3b78c35a7096a81fd7daa240df505f4890dc0ee1..f5bc4520147f3765be59b31738056d308ec91535 100644 (file)
--- a/ir.cpp
+++ b/ir.cpp
@@ -656,8 +656,7 @@ bool ir_function_finalize(ir_function *self)
                             return false;
             }
             // just a standard variable
-            else if (v->m_name[0] != '#'
-                && irwarning(v->m_context, WARN_UNUSED_VARIABLE,
+            else if (irwarning(v->m_context, WARN_UNUSED_VARIABLE,
                     "unused variable: `%s`", v->m_name.c_str())) return false;
         }
     }