diff options
author | Paul Berry <stereotype441@gmail.com> | 2013-07-25 19:56:43 -0700 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2013-07-27 09:41:30 -0700 |
commit | 4d7899fe81b6ffc521c6f9688e25bcde4012e556 (patch) | |
tree | c230c0fce51c7b67a19223ca1f7601596cd76459 /src/glsl/ast_type.cpp | |
parent | 8c3d3622d9ce2fd2a8f46084ab8153d708fa5b09 (diff) |
glsl: Be consistent about '\n', '.', and capitalization in errors/warnings.
The majority of calls to _mesa_glsl_error(), _mesa_glsl_warning(), and
_mesa_glsl_parse_state::check_version() use a message that begins with
a lower case letter and ends without a period. This patch makes all
messages follow that convention.
Also, error/warning messages shouldn't end in '\n', since
_mesa_glsl_msg() automatically adds '\n' at the end of the message.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/glsl/ast_type.cpp')
-rw-r--r-- | src/glsl/ast_type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_type.cpp b/src/glsl/ast_type.cpp index 275b2a1d0ac..38c3f8eb02c 100644 --- a/src/glsl/ast_type.cpp +++ b/src/glsl/ast_type.cpp @@ -129,7 +129,7 @@ ast_type_qualifier::merge_qualifier(YYLTYPE *loc, if ((this->flags.i & q.flags.i & ~(ubo_mat_mask.flags.i | ubo_layout_mask.flags.i)) != 0) { _mesa_glsl_error(loc, state, - "duplicate layout qualifiers used\n"); + "duplicate layout qualifiers used"); return false; } |