BatchDrake/suscan

cc: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]

Closed this issue · 3 comments

When making a release build, clang outputs the following for each .c file:

cc: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]

I'm assuming this is supposed to be the strip option on gcc, which is AFAIK a linker option. Therefore, it should not be set on CMAKE_C_FLAGS_RELEASE but rather on whatever the linking equivalent is.

I should add, the build succeeds just fine. It's just noisy, that's all.

Done. Changes in develop now.

Fix works. It looks so much better now :)