From 0103af1ddda6a2aa31227965141dd7d3a513e081 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Thu, 29 Sep 2022 12:53:28 +0300 Subject: Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4. --- thirdparty/misc/patches/polypartition-hole.patch | 15 +++++++++++++++ thirdparty/misc/polypartition.h | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 thirdparty/misc/patches/polypartition-hole.patch (limited to 'thirdparty/misc') diff --git a/thirdparty/misc/patches/polypartition-hole.patch b/thirdparty/misc/patches/polypartition-hole.patch new file mode 100644 index 0000000000..2fcb5d1928 --- /dev/null +++ b/thirdparty/misc/patches/polypartition-hole.patch @@ -0,0 +1,15 @@ +diff --git a/thirdparty/misc/polypartition.h b/thirdparty/misc/polypartition.h +index fae7909079..c084bdf74c 100644 +--- a/thirdparty/misc/polypartition.h ++++ b/thirdparty/misc/polypartition.h +@@ -71,8 +71,8 @@ class TPPLPoly { + return hole; + } + +- void SetHole(bool hole) { +- this->hole = hole; ++ void SetHole(bool p_hole) { ++ this->hole = p_hole; + } + + TPPLPoint &GetPoint(long i) { diff --git a/thirdparty/misc/polypartition.h b/thirdparty/misc/polypartition.h index fae7909079..c084bdf74c 100644 --- a/thirdparty/misc/polypartition.h +++ b/thirdparty/misc/polypartition.h @@ -71,8 +71,8 @@ class TPPLPoly { return hole; } - void SetHole(bool hole) { - this->hole = hole; + void SetHole(bool p_hole) { + this->hole = p_hole; } TPPLPoint &GetPoint(long i) { -- cgit v1.2.3