aboutsummaryrefslogtreecommitdiff
path: root/gdb/source-cache.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2019-03-08 10:15:12 -0500
committerSimon Marchi <simon.marchi@efficios.com>2019-03-09 08:09:39 -0500
commit568c0683da0a5d1cf5c62c9deb8abb8513875eee (patch)
tree33795c3e5f6224971cec35a371f42f7df9ac9747 /gdb/source-cache.c
parentf09ce22d6a2266c3bbe5061eb61e7fad65568652 (diff)
downloadgdb-568c0683da0a5d1cf5c62c9deb8abb8513875eee.zip
gdb-568c0683da0a5d1cf5c62c9deb8abb8513875eee.tar.gz
gdb-568c0683da0a5d1cf5c62c9deb8abb8513875eee.tar.bz2
Remove unnecessary cases from rank_one_type's switch
We return INCOMPATIBLE_TYPE_BADNESS for all these type codes, so we might as well just let them go to the default case. Incidentally, this patch also makes this false positive error go away when compiling with gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0, default compiler on Ubuntu 18.04. CXX gdbtypes.o /home/smarchi/src/binutils-gdb/gdb/gdbtypes.c: In function ‘rank rank_one_type(type*, type*, value*)’: /home/smarchi/src/binutils-gdb/gdb/gdbtypes.c:4259:1: error: control reaches end of non-void function [-Werror=return-type] } ^ gdb/ChangeLog: * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
Diffstat (limited to 'gdb/source-cache.c')
0 files changed, 0 insertions, 0 deletions