fix g++ warning about returning a reference
This commit is contained in:
parent
f814627508
commit
95265de0cd
@ -99,7 +99,8 @@ endif()
|
|||||||
|
|
||||||
target_compile_options(yaml-cpp
|
target_compile_options(yaml-cpp
|
||||||
PRIVATE
|
PRIVATE
|
||||||
$<${not-msvc}:-Wall -Wextra -Wshadow -Weffc++ -Wno-long-long>
|
$<${not-msvc}:-Wall -Wextra -Wshadow -Wno-long-long>
|
||||||
|
$<$<BOOL:${YAML_CPP_MASTER_PROJECT}>:-Weffc++>
|
||||||
$<${not-msvc}:-pedantic -pedantic-errors>
|
$<${not-msvc}:-pedantic -pedantic-errors>
|
||||||
|
|
||||||
$<$<AND:${backport-msvc-runtime},${msvc-rt-mtd-static}>:-MTd>
|
$<$<AND:${backport-msvc-runtime},${msvc-rt-mtd-static}>:-MTd>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user