This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] clang: fix implicit enum conversion
- From: Sanimir Agovic <sanimir dot agovic at intel dot com>
- To: gdb-patches at sourceware dot org
- Cc: Sanimir Agovic <sanimir dot agovic at intel dot com>
- Date: Tue, 5 Feb 2013 10:44:41 +0100
- Subject: [PATCH] clang: fix implicit enum conversion
Removes the following recurring warnings:
implicit conversion from enumeration type 'enum bptype' to different enumeration type 'enum type_code' [-Wenum-conversion]
implicit conversion from enumeration type 'enum target_hw_bp_type' to different enumeration type 'enum type_code' [-Wenum-conversion]
05-02-2013 Sanimir Agovic <sanimir.agovic@intel.com>
* python/py-breakpoint (struct pybp_code): Use int instead of
enum type_code.
Change-Id: I2ceb5d49e65c76e8ab2d7d953f1061206e2dfb91
Signed-off-by: Sanimir Agovic <sanimir.agovic@intel.com>
---
gdb/python/py-breakpoint.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdb/python/py-breakpoint.c b/gdb/python/py-breakpoint.c
index 078ae16..5e5f9b3 100644
--- a/gdb/python/py-breakpoint.c
+++ b/gdb/python/py-breakpoint.c
@@ -48,7 +48,7 @@ struct pybp_code
/* The name. */
const char *name;
/* The code. */
- enum type_code code;
+ int code;
};
/* Entries related to the type of user set breakpoints. */
--
1.7.1.1