fix g++ warning about returning a reference

This commit is contained in:
Jason Beach 2021-07-15 14:58:30 -04:00
parent f814627508
commit 95265de0cd

View File

@ -99,7 +99,8 @@ endif()
target_compile_options(yaml-cpp
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>
$<$<AND:${backport-msvc-runtime},${msvc-rt-mtd-static}>:-MTd>