mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
Avoid clobbered variable warning on ppc64le.
Since commit e2ed6fbeb1
, Ci on ppc64le with Ubuntu 16.04.6 LTS throws
this error:
lib/fatal-signal.c: In function 'send_backtrace_to_monitor':
lib/fatal-signal.c:168:9: error: variable 'dep' might be clobbered by
'longjmp' or 'vfork' [-Werror=clobbered]
int dep;
Declaring dep as a volatile int.
Signed-off-by: David Wilder <dwilder@us.ibm.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -165,7 +165,8 @@ fatal_signal_add_hook(void (*hook_cb)(void *aux), void (*cancel_cb)(void *aux),
|
||||
*/
|
||||
static inline void
|
||||
send_backtrace_to_monitor(void) {
|
||||
int dep;
|
||||
/* volatile added to prevent a "clobbered" error on ppc64le with gcc */
|
||||
volatile int dep;
|
||||
struct unw_backtrace unw_bt[UNW_MAX_DEPTH];
|
||||
unw_cursor_t cursor;
|
||||
unw_context_t uc;
|
||||
|
Reference in New Issue
Block a user