OSDN Git Service

gallium: silence __builtin_frame_address nonzero argument is unsafe warning
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 9 Mar 2018 00:00:55 +0000 (11:00 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 12 Mar 2018 22:38:10 +0000 (09:38 +1100)
commit370e356ebab4885fc19b2b1d1de2816b6cd4dfc8
treee5266367853b5c8b0fa7251d9dbb39bb791c3624
parentb7c6870f87acafd592629d1c3127b54e52689f02
gallium: silence __builtin_frame_address nonzero argument is unsafe warning

Calling __builtin_frame_address with a nonzero argument is unsafe
but is sometimes done for debugging purposes. Since this code is
part of some debug util code I'm assuming that is the case here
and using GCC pragma to silence the warning.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_debug_stack.c