From 0985c1d176b01b07cd2c060ba204869eb2bb280c Mon Sep 17 00:00:00 2001 From: qurious-pixel <62252937+qurious-pixel@users.noreply.github.com> Date: Tue, 29 Dec 2020 14:10:44 -0800 Subject: [PATCH] Create fixvideocorewarns.patch --- patches/fixvideocorewarns.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 patches/fixvideocorewarns.patch diff --git a/patches/fixvideocorewarns.patch b/patches/fixvideocorewarns.patch new file mode 100644 index 000000000..42fc131f9 --- /dev/null +++ b/patches/fixvideocorewarns.patch @@ -0,0 +1,21 @@ +--- a/src/video_core/CMakeLists.txt ++++ b/src/video_core/CMakeLists.txt +@@ -299,7 +299,6 @@ + /we4457 # Declaration of 'identifier' hides function parameter + /we4458 # Declaration of 'identifier' hides class member + /we4459 # Declaration of 'identifier' hides global declaration +- /we4715 # 'function' : not all control paths return a value + ) + else() + target_compile_options(video_core PRIVATE +@@ -307,10 +305,8 @@ + -Werror=shadow + -Werror=switch + -Werror=type-limits +- -Werror=unused-variable + + $<$:-Werror=class-memaccess> + $<$:-Werror=unused-but-set-parameter> +- $<$:-Werror=unused-but-set-variable> + ) + endif()