diff --git a/Makefile b/Makefile index b35d09c0..541be0ec 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,7 @@ export CC = clang export CXX = clang++ export COBJC = clang export LDFLAGS += -framework IOKit -framework CoreFoundation +export CFLAGS += -Wno-deprecated-declarations endif endif diff --git a/lib/imagewriter/imgimagewriter.cc b/lib/imagewriter/imgimagewriter.cc index 415a8b80..7f67a433 100644 --- a/lib/imagewriter/imgimagewriter.cc +++ b/lib/imagewriter/imgimagewriter.cc @@ -82,6 +82,9 @@ public: sectors.push_back(sectorId + i); break; } + + default: + break; } return sectors; } diff --git a/mkninja.sh b/mkninja.sh index d926e134..d80f02ec 100644 --- a/mkninja.sh +++ b/mkninja.sh @@ -149,8 +149,16 @@ buildproto() { local flags flags= + local deps + deps= while true; do case $1 in + -d) + deps="$deps $2" + shift + shift + ;; + -*) flags="$flags $1" shift @@ -174,7 +182,7 @@ buildproto() { hfiles="$hfiles $hfile" done - echo build $cfiles $hfiles $def : proto $@ + echo "build $cfiles $hfiles $def : proto $@ | $deps" echo " flags=$flags --cpp_out=$OBJDIR/proto" echo " def=$def" @@ -579,6 +587,7 @@ buildsimpleprogram brother240tool \ libfmt.a \ buildproto libtestproto.a \ + -d $OBJDIR/proto/lib/common.pb.h \ tests/testproto.proto \ buildencodedproto $OBJDIR/proto/libtestproto.def TestProto testproto_pb tests/testproto.textpb $OBJDIR/proto/tests/testproto.cc