gdb.python/py-as-string.exp C++ify
authorPedro Alves <pedro@palves.net>
Thu, 17 Sep 2020 22:33:43 +0000 (23:33 +0100)
committerPedro Alves <pedro@palves.net>
Thu, 17 Sep 2020 23:08:44 +0000 (00:08 +0100)
Make the testcase buildable with a C++ compiler.

gdb/testsuite/ChangeLog:

* gdb.python/py-as-string.c: Add cast.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-as-string.c

index db141589fcb8990f844b46a8dc150374e3029d46..587f1ae14249625afe14633a3748ceab043ec3ee 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 7780a9c93c23844fa658404ec609546d8252d35d..245bcb286bd3c714095896dd843fe78f9b16173e 100644 (file)
@@ -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 ()
This page took 0.033869 seconds and 4 git commands to generate.