diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-03-30 01:38:59 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-03-30 02:20:23 -0400 |
commit | 11558abc20f902a1fa3ea128809862787f642598 (patch) | |
tree | 39fcd6507f95ac1f8578c28629fc9432e8199311 /sim/d10v/endian.c | |
parent | ef9535c6bc7c5d50d03e9f98498e018ac56e366c (diff) | |
download | gdb-11558abc20f902a1fa3ea128809862787f642598.zip gdb-11558abc20f902a1fa3ea128809862787f642598.tar.gz gdb-11558abc20f902a1fa3ea128809862787f642598.tar.bz2 |
sim: d10v: clean up misc warnings
Diffstat (limited to 'sim/d10v/endian.c')
-rw-r--r-- | sim/d10v/endian.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/sim/d10v/endian.c b/sim/d10v/endian.c index 9ef503e..e9fce7d 100644 --- a/sim/d10v/endian.c +++ b/sim/d10v/endian.c @@ -8,8 +8,7 @@ #endif ENDIAN_INLINE uint16 -get_word (x) - uint8 *x; +get_word (uint8 *x) { #if (defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__)) && defined(__GNUC__) @@ -28,8 +27,7 @@ get_word (x) } ENDIAN_INLINE uint32 -get_longword (x) - uint8 *x; +get_longword (uint8 *x) { #if (defined(__i486__) || defined(__i586__) || defined(__i686__)) && defined(__GNUC__) && defined(USE_BSWAP) @@ -62,8 +60,7 @@ get_longword (x) } ENDIAN_INLINE int64 -get_longlong (x) - uint8 *x; +get_longlong (uint8 *x) { uint32 top = get_longword (x); uint32 bottom = get_longword (x+4); @@ -71,9 +68,7 @@ get_longlong (x) } ENDIAN_INLINE void -write_word (addr, data) - uint8 *addr; - uint16 data; +write_word (uint8 *addr, uint16 data) { #if (defined(__i386__) || defined(__i486__) || defined(__i586__) || defined(__i686__)) && defined(__GNUC__) @@ -92,9 +87,7 @@ write_word (addr, data) } ENDIAN_INLINE void -write_longword (addr, data) - uint8 *addr; - uint32 data; +write_longword (uint8 *addr, uint32 data) { #if (defined(__i486__) || defined(__i586__) || defined(__i686__)) && defined(__GNUC__) && defined(USE_BSWAP) @@ -128,9 +121,7 @@ write_longword (addr, data) } ENDIAN_INLINE void -write_longlong (addr, data) - uint8 *addr; - int64 data; +write_longlong (uint8 *addr, int64 data) { write_longword (addr, (uint32)(data >> 32)); write_longword (addr+4, (uint32)data); |