]> rtime.felk.cvut.cz Git - jailhouse.git/commit
configs: enable additional compiler warnings
authorGeorg Schiesser <georg.schiesser@opentech.at>
Tue, 10 May 2016 21:39:26 +0000 (23:39 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Wed, 11 May 2016 05:35:38 +0000 (07:35 +0200)
commit865db819d8783b23fd1e414d722e00997035e7e4
tree89300088b35df4c8533344fe7f9013f7986679d6
parent9db985ca5b46fea465b068c17b41c0f70a6434ad
configs: enable additional compiler warnings

Make it easier to spot configuration problems like commit 886ca63f.
gcc -Wextra includes -Woverride-init, which will print warnings like:

qemu-vm.c:190:3: warning: initialized field overwritten [-Woverride-init]
   [  0x78/8 ...   0x7f/7] = -1,
   [  0x80/8 ...   0x87/8] = 0xfe, /* Linux: native_io_delay() */
   ^
qemu-vm.c:190:3: warning: (near initialization for 'config.pio_bitmap[16]')

see also: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

Signed-off-by: Georg Schiesser <georg.schiesser@opentech.at>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
configs/Makefile