util: Silence GCC unused-but-set-variable warning.
authorVinson Lee <vlee@freedesktop.org>
Mon, 16 Jan 2012 07:08:26 +0000 (23:08 -0800)
committerVinson Lee <vlee@freedesktop.org>
Mon, 16 Jan 2012 20:41:55 +0000 (12:41 -0800)
Fix this GCC 4.6 warning with 64-bit builds.
u_debug_stack.c: In function ‘debug_backtrace_capture’:
u_debug_stack.c:45:17: warning: variable ‘frame_pointer’ set but not
used [-Wunused-but-set-variable]

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_debug_stack.c

index 24e039fd226aa2d5f3e6f5331808a9dc2a6f2a18..558b911f2dd065128b8399103f4461ceb4252241 100644 (file)
@@ -86,6 +86,8 @@ debug_backtrace_capture(struct debug_stack_frame *backtrace,
       
       frame_pointer = next_frame_pointer;
    }
+#else
+   (void) frame_pointer;
 #endif
    
    while(nr_frames) {