diff options
author | Paul Menzel <paulepanter@users.sourceforge.net> | 2013-10-03 11:55:48 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-10-26 10:15:04 -0400 |
commit | f08e84793c51ef64dc1d08e3a9bee3f47581e8de (patch) | |
tree | 4c140fac77cba37878fe6a2cad9a4af329d64d73 /scripts/acpi_extract_preprocess.py | |
parent | 995bbeef78b338370f426bf8d0399038c3fa259c (diff) | |
download | seabios-f08e84793c51ef64dc1d08e3a9bee3f47581e8de.zip seabios-f08e84793c51ef64dc1d08e3a9bee3f47581e8de.tar.gz seabios-f08e84793c51ef64dc1d08e3a9bee3f47581e8de.tar.bz2 |
hw/usb-xhci.c: Code refactoring to not override initializers in `speed_from_xhci[16]`
Using Debian clang version 3.4-1 (trunk) (based on LLVM 3.4) to build
SeaBIOS, the switch `-Winitializer-overrides` results in the following
warnings.
$ CC=clang make
[…]
Compile checking out/src/hw/usb-xhci.o
clang: warning: argument unused during compilation: '-mpreferred-stack-boundary=2'
clang: warning: argument unused during compilation: '-minline-all-stringops'
clang: warning: argument unused during compilation: '-fno-delete-null-pointer-checks'
src/hw/usb-xhci.c:281:13: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ 1 ] = USB_FULLSPEED,
^~~~~~~~~~~~~
src/hw/usb.h:68:24: note: expanded from macro 'USB_FULLSPEED'
^
src/hw/usb-xhci.c:280:20: note: previous initialization is here
[ 0 ... 15 ] = -1,
^~
src/hw/usb-xhci.c:282:13: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ 2 ] = USB_LOWSPEED,
^~~~~~~~~~~~
src/hw/usb.h:69:24: note: expanded from macro 'USB_LOWSPEED'
^
src/hw/usb-xhci.c:280:20: note: previous initialization is here
[ 0 ... 15 ] = -1,
^~
src/hw/usb-xhci.c:283:13: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ 3 ] = USB_HIGHSPEED,
^~~~~~~~~~~~~
src/hw/usb.h:70:24: note: expanded from macro 'USB_HIGHSPEED'
^
src/hw/usb-xhci.c:280:20: note: previous initialization is here
[ 0 ... 15 ] = -1,
^~
src/hw/usb-xhci.c:284:13: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ 4 ] = USB_SUPERSPEED,
^~~~~~~~~~~~~~
src/hw/usb.h:71:24: note: expanded from macro 'USB_SUPERSPEED'
^
src/hw/usb-xhci.c:280:20: note: previous initialization is here
[ 0 ... 15 ] = -1,
^~
Refactor the code a little to get rid of the warnings.
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'scripts/acpi_extract_preprocess.py')
0 files changed, 0 insertions, 0 deletions