From 586e741ac1fa222d041990b265e820f5aa11344d Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 28 Jul 2011 14:04:09 -0700 Subject: linker: Make linker_error set LinkStatus to false Remove the other places that set LinkStatus to false since they all immediately follow a call to linker_error. The function linker_error was previously known as linker_error_printf. The name was changed because it may seem surprising that a printf function will set an error flag. Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/glsl/ir_function_detect_recursion.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/glsl/ir_function_detect_recursion.cpp') diff --git a/src/glsl/ir_function_detect_recursion.cpp b/src/glsl/ir_function_detect_recursion.cpp index 44a1cd0b950..a3b461818d3 100644 --- a/src/glsl/ir_function_detect_recursion.cpp +++ b/src/glsl/ir_function_detect_recursion.cpp @@ -311,9 +311,7 @@ emit_errors_linked(const void *key, void *data, void *closure) f->sig->function_name(), &f->sig->parameters); - linker_error_printf(prog, - "function `%s' has static recursion.\n", - proto); + linker_error(prog, "function `%s' has static recursion.\n", proto); ralloc_free(proto); prog->LinkStatus = false; } -- cgit v1.2.3