From 0640a543397b83fb0a4f8f95dad0b09e6574c369 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 17 Sep 2020 23:33:43 +0100 Subject: 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. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.python/py-as-string.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gdb') 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 + * gdb.python/py-as-string.c: Add cast. + +2020-09-17 Pedro Alves + * gdb.base/sizeof.c (fill): Add cast. 2020-09-17 Pedro Alves 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 () -- cgit v1.1