I cannot find much information regarding this. What can cause clang to specify this warning?
I have a dev machine which runs a cmake script and everything works fine. The very same cmake file is being executed on a build server the above message is being printed out all the time.
The build server is running clang3.8 while my dev machine is running clang4. I cannot reproduce this problem with a simple solution either. For instance, a simple main.cpp will not cause this error:
clang++ main.cpp -std=c++14 -stdlib=libc++
works just fine even on the build machine.
Any ideas why this might get printed?
This are the flags im using:
set(LIBRARY_RELEASE_OPTIONS "-Wall;-Wextra;-pedantic;-Wlong-long;-Wmissing-braces;-Wunused-function;-Wuninitialized;-Wunused-label;-Wunused-parameter;-Wdisabled-optimization;-O2;-std=c++14;")
add_library(${SHARED_LIBRARY_NAME} STATIC ${SERVER_SOURCE})
target_compile_options(${SHARED_LIBRARY_NAME} PUBLIC "$<$<CONFIG:RELEASE>:${LIBRARY_RELEASE_OPTIONS}>")