I have these two options set in CMakeCache.txt:
//Enable compiler warnings.
LLVM_ENABLE_WARNINGS:BOOL=ON
//Fail and stop if a warning is triggered.
LLVM_ENABLE_WERROR:BOOL=ON
_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
It's possible that the buildbot is using a different compiler with
different warning implementations (& the LLVM CMake build does
enable/disable certain warnings on a per-compiler basis because of
inconsistencies in their implementations, or some of them being lower
quality/buggy/etc).
Have you tried introducing some fairly "obvious" code that should
elicit a warning to see if your local build is identifying them?
Missing a return statement in a non-void-returning function should
probably be caught by nearly any compiler... (though maybe that's
-Werror by default in some compilers, so might not be the best
test)... not sure what the best example would be, unused variable,
perhaps? (just add a local variable to a function with no use of that
variable)