samsung: board: fix: Define loop iterator as an unsigned int to suppress gcc 4.8...
authorŁukasz Majewski <l.majewski@samsung.com>
Wed, 4 Mar 2015 09:54:48 +0000 (10:54 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 4 Mar 2015 11:01:01 +0000 (20:01 +0900)
commitc8b71a35289112f77691df0d0b4a97ef19dac87b
tree1848f2ad0d7552ed2c47d062f430c852c60a92cb
parent19e5118d1c4c9bd2dc9e52355774c8ea73839b5b
samsung: board: fix: Define loop iterator as an unsigned int to suppress gcc 4.8 warning

This patch suppress following warning:

board/samsung/common/board.c:95:32: warning: iteration 4u invokes undefined behavior [-Waggressive-loop-optimizations]
   addr = CONFIG_SYS_SDRAM_BASE + (i * SDRAM_BANK_SIZE);
                                ^
board/samsung/common/board.c:94:2: note: containing loop

about possible signed integer overflow at gcc 4.8.2 (odroid board)

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/common/board.c