machine-drivers / docker-machine-driver-xhyve

docker-machine/minikube/minishift driver plugin for xhyve/hyperkit (native macOS hypervisor.framework)
https://godoc.org/github.com/machine-drivers/docker-machine-driver-xhyve
BSD 3-Clause "New" or "Revised" License
889 stars 73 forks source link

Xcode 6.3: format-pedantic error in vhpet.c #111

Open gjasny opened 8 years ago

gjasny commented 8 years ago

Hello,

with Xcode 6.3 I get the following error:

$ make V=1
cc src/vmm/io/vhpet.c
LANG=en_US.US-ASCII clang -arch x86_64 -x c -std=c11 -fno-common -fvisibility=hidden -DXHYVE_CONFIG_ASSERT -Os -flto -fstrict-aliasing -Weverything -Werror -Wno-unknown-warning-option -Wno-reserved-id-macro -pedantic -fmessage-length=152 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -g -DVERSION=\"v0.2.0-12-g793d17\" -Iinclude  -MMD -MT build/vmm/io/vhpet.o -MF build/vmm/io/vhpet.d -o build/vmm/io/vhpet.o -c src/vmm/io/vhpet.c
src/vmm/io/vhpet.c:294:60: error: format specifies type 'void *' but the argument has type 'struct vhpet *' [-Werror,-Wformat-pedantic]
                xhyve_abort("vhpet(%p) callout with counter disabled\n", vhpet);
                                   ~~                                    ^~~~~
In file included from src/vmm/io/vhpet.c:35:
include/xhyve/support/misc.h:22:19: note: expanded from macro 'xhyve_abort'
                fprintf(stderr, __VA_ARGS__); \
                                ^~~~~~~~~~~

My clang version is Apple LLVM version 7.3.0 (clang-703.0.29).

Thanks, Gregor