Menu

#60 cc1plus: error: unrecognized command line option "-Wimplicit-fallthrough"

v2.2.0
open
nobody
None
5
2018-10-04
2016-02-17
No

graphite2 1.3.5 does not build on Mac OS X 10.6.8 using its customary Apple gcc 4.2.1 compiler. Here is a build log from the MacPorts project's automated Mac OS X 10.6.8 builder:

https://build.macports.org/builders/buildports-snowleopard-x86_64/builds/40471/steps/compile/logs/stdio

The error is:

cc1plus: error: unrecognized command line option "-Wimplicit-fallthrough"

Discussion

  • Ryan Carsten Schmidt

    In your src/CMakeLists.txt I see that on Linux you only add -Wimplicit-fallthrough when the compiler is clang, but on OS X you always add it. If it only works with clang, you should only add it when using clang, on any platform.

     
  • Ryan Carsten Schmidt

    Looks like this hasn't been fixed in 1.3.10 yet.

     

Log in to post a comment.