[Mesa-dev] [PATCH 0/2] glsl: add "use of uninitialized variable" warning

Alejandro Piñeiro apinheiro at igalia.com
Mon Mar 28 18:50:00 UTC 2016


This is a re-send of some patches that I sent one month ago, because
as they had a partial review and some new versions of those patches,
I assume that it would be easier this way (correct me if I'm wrong).

The original send can be found here:
https://lists.freedesktop.org/archives/mesa-dev/2016-February/108667.html

And here:
https://patchwork.freedesktop.org/series/3851/

Alejandro Piñeiro (2):
  glsl: add is_lhs bool on ast_expression
  glsl: raise warning when using uninitialized variables

 src/compiler/glsl/ast.h                  |  6 +++++
 src/compiler/glsl/ast_function.cpp       |  4 ++++
 src/compiler/glsl/ast_to_hir.cpp         | 40 ++++++++++++++++++++++++++++++++
 src/compiler/glsl/glsl_parser_extras.cpp |  1 +
 4 files changed, 51 insertions(+)

-- 
2.5.0



More information about the mesa-dev mailing list