Pass 0 to __builtin_frame_address() to appease modern GCC.
Modern versions of GCC warn about passing non-zero values to __builtin_frame_address(). Passing 1 is a cosmetic change to remove the db_trace_self() frame from the printed stack trace. Reported by: marius, imp Differential Revision: https://reviews.freebsd.org/D22600
This commit is contained in:
parent
31174518d2
commit
86712774d2
@ -279,7 +279,7 @@ db_trace_self(void)
|
||||
{
|
||||
|
||||
db_backtrace(curthread,
|
||||
(struct frame *)__builtin_frame_address(1), -1);
|
||||
(struct frame *)__builtin_frame_address(0), -1);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user