You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/wrkdirs/usr/ports/devel/apitrace/work/apitrace-7.1-455-g7c76b90/thirdparty/libbacktrace/dwarf.c:1335:24: warning: comparison of constant 17 with expression of type 'const enum dwarf_tag' is always false [-Wtautological-constant-out-of-range-compare]
if (abbrev->tag == DW_TAG_compile_unit
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/devel/apitrace/work/apitrace-7.1-455-g7c76b90/thirdparty/libbacktrace/dwarf.c:1341:24: warning: comparison of constant 17 with expression of type 'const enum dwarf_tag' is always false [-Wtautological-constant-out-of-range-compare]
if (abbrev->tag == DW_TAG_compile_unit
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/devel/apitrace/work/apitrace-7.1-455-g7c76b90/thirdparty/libbacktrace/dwarf.c:1351:23: warning: comparison of constant 17 with expression of type 'const enum dwarf_tag' is always false [-Wtautological-constant-out-of-range-compare]
if (abbrev->tag == DW_TAG_compile_unit
/wrkdirs/usr/ports/devel/apitrace/work/apitrace-7.1-455-g7c76b90/thirdparty/libbacktrace/dwarf.c:2276:34: warning: comparison of constant 46 with expression of type 'const enum dwarf_tag' is always false [-Wtautological-constant-out-of-range-compare]
is_function = (abbrev->tag == DW_TAG_subprogram
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered:
For Apitrace, I suggest changing definitions of dummy enums to make the range wide enough to cover all actual values (technically, with the current definition, dummy enums could correspond to char-sized integer types, which would be wrong). Like this, untested:
To clarify, the diff proposed above would have nothing to do with libbacktrace upstream: auxincl/dwarf2.h is an Apitrace addition replacing an internal GCC header file.
The text was updated successfully, but these errors were encountered: