diff options
Diffstat (limited to 'src/3rdparty/double-conversion/patches')
-rw-r--r-- | src/3rdparty/double-conversion/patches/0001-Avoid-unused-function-warning-for-AssertTrimmedDigit.patch | 29 | ||||
-rw-r--r-- | src/3rdparty/double-conversion/patches/ReadMe.txt | 9 |
2 files changed, 0 insertions, 38 deletions
diff --git a/src/3rdparty/double-conversion/patches/0001-Avoid-unused-function-warning-for-AssertTrimmedDigit.patch b/src/3rdparty/double-conversion/patches/0001-Avoid-unused-function-warning-for-AssertTrimmedDigit.patch deleted file mode 100644 index 6231bcf4af..0000000000 --- a/src/3rdparty/double-conversion/patches/0001-Avoid-unused-function-warning-for-AssertTrimmedDigit.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 56a9da33eccb6ed0b6d9f99301a271ca5cd6edfa Mon Sep 17 00:00:00 2001 -From: Edward Welbourne <edward.welbourne@qt.io> -Date: Wed, 27 Jan 2021 15:27:05 +0100 -Subject: [PATCH] Avoid unused function warning for AssertTrimmedDigits() - -It's only used in an assertion, hence it's unused when assertions are off. ---- - double-conversion/strtod.cc | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/double-conversion/strtod.cc b/double-conversion/strtod.cc -index 850bcda..24fd859 100644 ---- a/double-conversion/strtod.cc -+++ b/double-conversion/strtod.cc -@@ -460,6 +460,11 @@ static bool IsNonZeroDigit(const char d) { - return ('1' <= d) && (d <= '9'); - } - -+#ifdef __has_cpp_attribute -+#if __has_cpp_attribute(maybe_unused) -+[[maybe_unused]] -+#endif -+#endif - static bool AssertTrimmedDigits(const Vector<const char>& buffer) { - for(int i = 0; i < buffer.length(); ++i) { - if(!IsDigit(buffer[i])) { --- -2.29.2 - diff --git a/src/3rdparty/double-conversion/patches/ReadMe.txt b/src/3rdparty/double-conversion/patches/ReadMe.txt deleted file mode 100644 index 55a5953fad..0000000000 --- a/src/3rdparty/double-conversion/patches/ReadMe.txt +++ /dev/null @@ -1,9 +0,0 @@ -Files generated, by git format-patch, from a branch off the -double-conversion upstream's master branch, reflecting the changes to -files there before copying to this directory and its include/. This -ensures that the upstream can take the changes most easily. - -Although they have a CLA, our changes have never risen to the level of -having any standing at copyright or patent law; on that basis, they -accepted our patches up to 2020 in early 2021 and we may hope they -will do so again in future. |