[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix another clang compile warning
commit 9dd4e5a9b0f6415081df752b9cad331009eb5853
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
Date: Wed Jun 13 16:51:56 2012 +0200
Fix another clang compile warning
We forgot this when we fixed 5969.
---
changes/bug6141 | 4 ++++
src/common/util.h | 3 ++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/changes/bug6141 b/changes/bug6141
new file mode 100644
index 0000000..b95475c
--- /dev/null
+++ b/changes/bug6141
@@ -0,0 +1,4 @@
+ o Minor bugfixes:
+ - Fix compilation warning with clang 3.1. Fixes bug 6141; bugfix on
+ 0.2.3.11-alpha.
+
diff --git a/src/common/util.h b/src/common/util.h
index 527dc48..a2b196c 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -231,7 +231,8 @@ int tor_sscanf(const char *buf, const char *pattern, ...)
void smartlist_add_asprintf(struct smartlist_t *sl, const char *pattern, ...)
CHECK_PRINTF(2, 3);
void smartlist_add_vasprintf(struct smartlist_t *sl, const char *pattern,
- va_list args);
+ va_list args)
+ CHECK_PRINTF(2, 0);
int hex_decode_digit(char c);
void base16_encode(char *dest, size_t destlen, const char *src, size_t srclen);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits