]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix another clang compile warning
authorSebastian Hahn <sebastian@torproject.org>
Wed, 13 Jun 2012 14:51:56 +0000 (16:51 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Wed, 13 Jun 2012 14:51:56 +0000 (16:51 +0200)
We forgot this when we fixed 5969.

changes/bug6141 [new file with mode: 0644]
src/common/util.h

diff --git a/changes/bug6141 b/changes/bug6141
new file mode 100644 (file)
index 0000000..b95475c
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor bugfixes:
+    - Fix compilation warning with clang 3.1. Fixes bug 6141; bugfix on
+      0.2.3.11-alpha.
+
index 527dc486f7f3a2cac1f77df6faa732e6d571536d..a2b196c88b3eeb761f5a748505a2764fdf620bc2 100644 (file)
@@ -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);