Use type suffix to avoid warnings

When compiling with all warnings enabled, some defines can lead to
warning due to missing unsigned type suffix:

warning: integer overflow in expression [-Woverflow]

This fix should not affected behavior at all, since calculation with
such overflows lead to the same actual address when writing to that
location. However, it makes the warning disappear and also defines
the right data type for a memory location.
This commit is contained in:
Stefan Agner
2014-01-20 00:51:14 +01:00
committed by Frantisek Burian
parent 0af6d06eda
commit 7681597e42
17 changed files with 188 additions and 188 deletions

View File

@@ -22,7 +22,7 @@
extern unsigned _etext_ram, _text_ram, _etext_rom;
#define CREG_M4MEMMAP MMIO32((0x40043000 + 0x100))
#define CREG_M4MEMMAP MMIO32((0x40043000U + 0x100))
static void pre_main(void)
{