Code changes to fix warnings/bugs during buildtime for the application in the folder gnu/usr.bin/gdb/libgdb
Diff Detail
Diff Detail
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 10641 Build 11045: arc lint + arc unit
Event Timeline
Comment Actions
Changelog:
Pre-fix warnings located at: https://gist.github.com/aprieger-llnw/a952754f3c2a06a5cdbb7137d7612e77
- contrib/gdb/gdb/arch-utils.c
- warning: warning: passing 'bfd_byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
- fix: added the (char*) explicit modifier on lines 58 and 60
- warning: warning: passing 'bfd_byte *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
- contrib/gdb/gdb/ax-gdb.c
- warning: warning: 20 enumeration values not handled in switch: 'TYPE_CODE_UNDEF', 'TYPE_CODE_PTR', 'TYPE_CODE_INT'... [-Wswitch]
- fix: added a default case that does nothing to handle the unhandled cases on line 746
- warning: warning: 20 enumeration values not handled in switch: 'TYPE_CODE_UNDEF', 'TYPE_CODE_PTR', 'TYPE_CODE_INT'... [-Wswitch]
- contrib/gdb/gdb/breakpoint.c
- warning: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
- fix: removed the extra parentheses on lines 2650 and 2662
- warning: warning: expression result unused [-Wunused-value]
- fix: removed the unused variable expression on line 5546
- warning: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]