diff options
author | Pedro Alves <pedro@palves.net> | 2020-09-17 23:33:43 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2020-09-18 00:08:44 +0100 |
commit | 0640a543397b83fb0a4f8f95dad0b09e6574c369 (patch) | |
tree | 4d94f32c830cae3586286697c36f5866115bde41 | |
parent | ef0cdbc16f4909d667497691f456d15c7dc7cdba (diff) | |
download | gdb-0640a543397b83fb0a4f8f95dad0b09e6574c369.zip gdb-0640a543397b83fb0a4f8f95dad0b09e6574c369.tar.gz gdb-0640a543397b83fb0a4f8f95dad0b09e6574c369.tar.bz2 |
gdb.python/py-as-string.exp C++ify
Make the testcase buildable with a C++ compiler.
gdb/testsuite/ChangeLog:
* gdb.python/py-as-string.c: Add cast.
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-as-string.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index db14158..587f1ae 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2020-09-17 Pedro Alves <pedro@palves.net> + * gdb.python/py-as-string.c: Add cast. + +2020-09-17 Pedro Alves <pedro@palves.net> + * gdb.base/sizeof.c (fill): Add cast. 2020-09-17 Pedro Alves <pedro@palves.net> diff --git a/gdb/testsuite/gdb.python/py-as-string.c b/gdb/testsuite/gdb.python/py-as-string.c index 7780a9c..245bcb2 100644 --- a/gdb/testsuite/gdb.python/py-as-string.c +++ b/gdb/testsuite/gdb.python/py-as-string.c @@ -23,7 +23,7 @@ enum EnumType { }; static enum EnumType enum_valid = ENUM_VALUE_B; -static enum EnumType enum_invalid = 20; +static enum EnumType enum_invalid = (enum EnumType) 20; int main () |