From 0640a543397b83fb0a4f8f95dad0b09e6574c369 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 17 Sep 2020 23:33:43 +0100 Subject: [PATCH] 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(-) 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 () -- 2.30.2