summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2021-03-29 13:44:50 +0200
committerMarge Bot <eric+marge@anholt.net>2021-04-09 03:57:50 +0000
commit01e012dab80850187bed48ea3a0c6a12ed9cb8ba (patch)
treecce93bc288faf220bfe1ec8a9230004c0ddac71f
parent34c84b6f0e977bd7aa00e26f22cb7cc35f349f80 (diff)
compiler/glsl: correct the number of string-arguments
This format-string seems to have been incorrect since it's inception. But there's also been commits that have both forgotten to add and remove flags as appropriate as well. Let's correct the format-list. This was done by counting by hand. A better solution for the long-term is coming in a future commit. Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9896>
-rw-r--r--src/compiler/glsl/ast_type.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/glsl/ast_type.cpp b/src/compiler/glsl/ast_type.cpp
index 8026302f0ac..4e09cc041ad 100644
--- a/src/compiler/glsl/ast_type.cpp
+++ b/src/compiler/glsl/ast_type.cpp
@@ -835,7 +835,8 @@ ast_type_qualifier::validate_flags(YYLTYPE *loc,
"%s '%s':"
"%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"
"%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"
- "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
+ "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"
+ "%s%s%s%s%s%s%s\n",
message, name,
bad.flags.q.invariant ? " invariant" : "",
bad.flags.q.precise ? " precise" : "",