From: Pedro Alves Date: Thu, 17 Sep 2020 22:33:43 +0000 (+0100) Subject: gdb.python/py-as-string.exp C++ify X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0640a543397b83fb0a4f8f95dad0b09e6574c369;p=binutils-gdb.git 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. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index db141589fcb..587f1ae1424 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2020-09-17 Pedro Alves + + * gdb.python/py-as-string.c: Add cast. + 2020-09-17 Pedro Alves * gdb.base/sizeof.c (fill): Add cast. diff --git a/gdb/testsuite/gdb.python/py-as-string.c b/gdb/testsuite/gdb.python/py-as-string.c index 7780a9c93c2..245bcb286bd 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 ()