diff options
Diffstat (limited to 'thirdparty/thorvg/patches/Fix_compiler_shadowing_warning.patch')
-rw-r--r-- | thirdparty/thorvg/patches/Fix_compiler_shadowing_warning.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/thirdparty/thorvg/patches/Fix_compiler_shadowing_warning.patch b/thirdparty/thorvg/patches/Fix_compiler_shadowing_warning.patch new file mode 100644 index 0000000000..e0647628d3 --- /dev/null +++ b/thirdparty/thorvg/patches/Fix_compiler_shadowing_warning.patch @@ -0,0 +1,23 @@ +diff --git a/thirdparty/thorvg/src/common/tvgLock.h b/thirdparty/thorvg/src/common/tvgLock.h +index e6d993a41e..5dd3d5a624 100644 +--- a/thirdparty/thorvg/src/common/tvgLock.h ++++ b/thirdparty/thorvg/src/common/tvgLock.h +@@ -38,10 +38,10 @@ namespace tvg { + { + Key* key = nullptr; + +- ScopedLock(Key& key) ++ ScopedLock(Key& k) + { +- key.mtx.lock(); +- this->key = &key; ++ k.mtx.lock(); ++ key = &k; + } + + ~ScopedLock() +@@ -68,3 +68,4 @@ namespace tvg { + #endif //THORVG_THREAD_SUPPORT + + #endif //_TVG_LOCK_H_ ++ |