Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: unknown warning option '-Wno-unused-local-typedefs' [-Werror,-Wunknown-warning-option] #24

Closed
hems opened this issue Feb 21, 2016 · 3 comments

Comments

@hems
Copy link

hems commented Feb 21, 2016

make all is yielding the following error, any ideas ?

repo/build [ make                                                                                                                                                                                                                                                                                                                                                master ] 7:06 pm
repo/build [ make all                                                                                                                                                                                                                                                                                                                                            master ] 7:06 pm
echo "#ifndef VERSION_HPP__" > ../src/version.hpp
echo "#define VERSION_HPP__" >> ../src/version.hpp
echo "namespace {" >> ../src/version.hpp
echo "  namespace version {" >> ../src/version.hpp
echo "      static const std::string date=\"`date`\";" >> ../src/version.hpp
echo "      static const std::string platform=\"Darwin\";" >> ../src/version.hpp
echo "      static const std::string version=\"`cat version.txt`\";" >> ../src/version.hpp
echo "  }; /* namespace version */" >> ../src/version.hpp
echo "} /* anonymous namespace */" >> ../src/version.hpp
echo "#endif /* VERSION_HPP__ */" >> ../src/version.hpp
mkdir -p `dirname ../bin/Darwin/wav2png`
echo -I../dependencies/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/
-I../dependencies/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/
clang++ -mmacosx-version-min=10.7 -stdlib=libc++ -O3 -Wall -Werror -Wno-unused-local-typedefs ../src/*.cpp -I../dependencies/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/ /usr/local/lib/libboost_program_options-mt.a /usr/local/lib/libsndfile.a /usr/local/lib/libpng.a /usr/local/lib/libogg.a /usr/local/lib/libvorbis.a /usr/local/lib/libvorbisenc.a /usr/local/lib/libFLAC.a -lz -o ../bin/Darwin/wav2png
error: unknown warning option '-Wno-unused-local-typedefs' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-unused-local-typedefs' [-Werror,-Wunknown-warning-option]
make: *** [../bin/Darwin/wav2png] Error 1
@beschulz
Copy link
Owner

I'll have a look soon. As a workaround, you can just remove the warning flags from the Makefile. Search for -Wno-unused-local-typedefs.

Best,
Ben

@beschulz
Copy link
Owner

Did my suggested workaround work?

@hems
Copy link
Author

hems commented Sep 1, 2016

@beschulz unfortunately i still didn't get back to this, i found the ( deleted ) binary on an old commit and that sorted my issue. would be nice to keep new binaries in the repository for similar reasons!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants