Re: [Mesa-dev] [PATCH] util: Silence GCC unused-but-set-variable warning.

2012-01-17 Thread Tolga Dalman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16.01.2012 19:05, Jose Fonseca wrote: >> Why not just move the definition of frame_pointer into the >> #ifdef PIPE_ARCH_X86 ? > > It would be cleaner, but it would require C99 as the declaration > would appear after code, which would break MSVC.

Re: [Mesa-dev] [PATCH] util: Silence GCC unused-but-set-variable warning.

2012-01-16 Thread Jose Fonseca
- Original Message - > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 16.01.2012 08:13, Vinson Lee wrote: > > 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

Re: [Mesa-dev] [PATCH] util: Silence GCC unused-but-set-variable warning.

2012-01-16 Thread Tolga Dalman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16.01.2012 08:13, Vinson Lee wrote: > 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] >

[Mesa-dev] [PATCH] util: Silence GCC unused-but-set-variable warning.

2012-01-15 Thread Vinson Lee
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 --- src/gallium/auxiliary/util/u_debug_stack.c |2 ++ 1 files c