diff options
author | hyc <hyc@symas.com> | 2017-04-26 04:11:57 +0100 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-05-14 15:23:34 -0700 |
commit | 9062810a11b1d1a347c16e7cfd4cac31ed9427b3 (patch) | |
tree | 18496ca67b65a2be9f3aa936452e7a1e316f81cc /patches/gcc | |
parent | 925d0490dba077672ee3da2c97337b2ef75dd33e (diff) | |
download | crosstool-ng-9062810a11b1d1a347c16e7cfd4cac31ed9427b3.tar.gz crosstool-ng-9062810a11b1d1a347c16e7cfd4cac31ed9427b3.tar.bz2 crosstool-ng-9062810a11b1d1a347c16e7cfd4cac31ed9427b3.zip |
Fix type mismatch in std::swap() args
Diffstat (limited to 'patches/gcc')
-rw-r--r-- | patches/gcc/linaro-6.3-2017.02/952-bionic-errno.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/gcc/linaro-6.3-2017.02/952-bionic-errno.patch b/patches/gcc/linaro-6.3-2017.02/952-bionic-errno.patch new file mode 100644 index 00000000..91f6ca34 --- /dev/null +++ b/patches/gcc/linaro-6.3-2017.02/952-bionic-errno.patch @@ -0,0 +1,19 @@ +commit 6cd4ad106ef87a3c58b0c3478e78409b47000de0 +Author: Howard Chu <hyc@symas.com> +Date: Tue Apr 25 20:17:03 2017 -0700 + + Fix, errno is volatile int + +diff --git a/libstdc++-v3/src/filesystem/dir.cc b/libstdc++-v3/src/filesystem/dir.cc +index 6ff12d0..5bbd664 100644 +--- a/libstdc++-v3/src/filesystem/dir.cc ++++ b/libstdc++-v3/src/filesystem/dir.cc +@@ -147,7 +147,7 @@ fs::_Dir::advance(error_code* ec, directory_options options) + + int err = std::exchange(errno, 0); + const auto entp = readdir(dirp); +- std::swap(errno, err); ++ std::swap((int&)errno, err); + + if (entp) + { |