tor/changes/clang_strcspn
Nick Mathewson 5fad3dc36b 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.
2012-06-26 11:02:44 -04:00

4 lines
125 B
Plaintext

o Minor bugfixes:
- Avoid a warning caused by using strcspn from glibc with clang 3.0.
Bugfix on 0.2.3.13-alpha.