uzh-rpg / fast

FAST corner detector by Edward Rosten
GNU Lesser General Public License v2.1
113 stars 89 forks source link

Fast fails to build on OSX #3

Open kubark42 opened 8 years ago

kubark42 commented 8 years ago

Clang does not recognize -Wno-unused-but-set-variable and thus fails to compile.

error: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Werror,-Wunknown-warning-option]

I fixed it by removing -Wno-unused-but-set-variable in CMakeLists.txt. This isn't a great fix because its bad mojo to remove useful warnings. It might be appropriate to add the compiler flag based on which type of compiler.

maoLB commented 6 years ago

Just remove this warning.