Fix "enumeration values not handled in switch" error in testsuite
authorGary Benson <gbenson@redhat.com>
Thu, 28 May 2020 17:02:55 +0000 (18:02 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 28 May 2020 17:02:55 +0000 (18:02 +0100)
commit4ad2c6a03ecb7faaf2658d3f8fb94f06441f2ba8
tree32c40df7a3f42ab4ef081f103924d69a2e610ed0
parenta87e1817a435dab6c6c042f9306497c9f13d4236
Fix "enumeration values not handled in switch" error in testsuite

When running the testsuite with clang, gdb.base/sigaltstack.c
fails to compile with the following error:
  warning: enumeration values 'LEAF' and 'NR_LEVELS' not handled
    in switch [-Wswitch]

This prevents the gdb.base/sigaltstack.exp from executing.
This commit fixes.

gdb/testsuite/ChangeLog:

* gdb.base/sigaltstack.c (catcher): Add default case to switch
statement.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/sigaltstack.c