aboutsummaryrefslogtreecommitdiff
path: root/CompilerChecks.cmake
AgeCommit message (Collapse)AuthorFilesLines
2019-12-09cmake: Add -Wsign-compare to CFLAGSAndreas Schneider1-0/+1
Fixes T188 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
2019-01-22cmake: Add -Wmissing-field-initializers compile flagAndreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-10-16cmake: Disable deprecation warnings for old known_hosts APIAndreas Schneider1-0/+6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-10-16cmake: Only check for -Wno-gnu-zero-variadic-macro-arguments with clangAndreas Schneider1-1/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-26cmake: Also add DEFAULT_LINK_FLAGS for SolarisAndreas Schneider1-0/+9
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-06cmake: Use -Wpedantic and remove -pedantic-errorsAndreas Schneider1-2/+1
We get -Werror if -DPICKY_DEVELOPER=ON is set. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-09-03cmake: Add -fstack-clash-protectionAndreas Schneider1-0/+5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-31cmake: Use -fstack-protector-strong if possibleAndreas Schneider1-4/+9
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-24cmake: Improve compiler flag detectionAndreas Schneider1-19/+29
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-23cmake: Allow zero for variadic macro argumentAndreas Schneider1-5/+3
This is also needed for clang. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-22cmake: Set -D_FORTIFY_SOURCE=2 if possibleAndreas Schneider1-0/+8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-20cmake: Add support for picky developer flagsAndreas Schneider1-0/+6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-20cmake: Improve compiler flag detectionAndreas Schneider1-0/+71
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>