diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-03-30 20:42:02 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-30 20:42:02 +0000 |
commit | ff398ee4f38a388e9565a63458e90ff56aace188 (patch) | |
tree | 681e2977655ce51f565a2acd1311f8f4a895278e /sim/common/sim-watch.h | |
parent | 6bf91687eb2ee78ad7cb60708d9f66288e345e16 (diff) | |
download | ppe42-binutils-ff398ee4f38a388e9565a63458e90ff56aace188.tar.gz ppe42-binutils-ff398ee4f38a388e9565a63458e90ff56aace188.zip |
sim: constify watchpoint interrupt names
GCC issues warnings because const strings like "foo" are passed as char*.
sim-watch.c: In function 'watchpoint_type_to_str':
sim-watch.c:120: warning: return discards qualifiers from pointer target type
Diffstat (limited to 'sim/common/sim-watch.h')
-rw-r--r-- | sim/common/sim-watch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/common/sim-watch.h b/sim/common/sim-watch.h index 65be89fcf5..2945f8d91b 100644 --- a/sim/common/sim-watch.h +++ b/sim/common/sim-watch.h @@ -63,7 +63,7 @@ typedef struct _sim_watchpoints { /* FIXME: can this be done better? Look at the PPC's interrupt mechanism and table for a rough idea of where it will go next */ int nr_interrupts; - char **interrupt_names; + const char **interrupt_names; /* active watchpoints */ int last_point_nr; |