aboutsummaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-06-26 10:55:23 -0400
committerNick Mathewson <nickm@torproject.org>2012-06-26 11:02:44 -0400
commit5fad3dc36b3aad7f2ea13e56d838c3eb37fb029d (patch)
tree003aa7c231c6f2c01bb69d3a9d343ba1ddd78634 /changes
parent9c8ec0aa20cda1787ee27a96e666af84f1081f5b (diff)
downloadtor-5fad3dc36b3aad7f2ea13e56d838c3eb37fb029d.tar
tor-5fad3dc36b3aad7f2ea13e56d838c3eb37fb029d.tar.gz
Fix a warning when using glibc's strcspn with clang.
With glibc 2.15 and clang 3.0, I get warnings from where we use the strcpsn implementation in the header as strcspn(string, "="). This is apparently because clang sees that part of the strcspn macro expands to "="[2], and doesn't realize that that part of the macro is only evaluated when "="[1] != 0.
Diffstat (limited to 'changes')
-rw-r--r--changes/clang_strcspn3
1 files changed, 3 insertions, 0 deletions
diff --git a/changes/clang_strcspn b/changes/clang_strcspn
new file mode 100644
index 000000000..38670ac37
--- /dev/null
+++ b/changes/clang_strcspn
@@ -0,0 +1,3 @@
+ o Minor bugfixes:
+ - Avoid a warning caused by using strcspn from glibc with clang 3.0.
+ Bugfix on 0.2.3.13-alpha.