aboutsummaryrefslogtreecommitdiff
path: root/changes/bug22801
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-07-03 10:59:31 -0400
committerNick Mathewson <nickm@torproject.org>2017-07-03 10:59:31 -0400
commit536103221911692d546d7325435812c29bb32ff1 (patch)
tree2206786e9004fbc86962e2f0257d0a49c7297cf6 /changes/bug22801
parent3483f7c00349be6cba7b703f2e5ee94563d0c6eb (diff)
downloadtor-536103221911692d546d7325435812c29bb32ff1.tar.gz
tor-536103221911692d546d7325435812c29bb32ff1.zip
Fix -Wfloat-conversion C warnings on mingw in clamp_double_to_int64.
We just have to suppress these warnings: Mingw's math.h uses gcc's __builtin_choose_expr() facility to declare isnan, isfinite, and signbit. But as implemented in at least some versions of gcc, __builtin_choose_expr() can generate type warnings even from branches that are not taken. Fixes bug 22801; bugfix on 0.2.8.1-alpha.
Diffstat (limited to 'changes/bug22801')
-rw-r--r--changes/bug228015
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/bug22801 b/changes/bug22801
new file mode 100644
index 0000000000..7edc79bc84
--- /dev/null
+++ b/changes/bug22801
@@ -0,0 +1,5 @@
+ o Minor bugfixes (compilation):
+ - When building with certain versions the mingw C header files, avoid
+ float-conversion warnings when calling the C functions isfinite(),
+ isnan(), and signbit(). Fixes bug 22801; bugfix on 0.2.8.1-alpha.
+