Browse Source

Fix another clang compile warning

We forgot this when we fixed 5969.
Sebastian Hahn 12 years ago
parent
commit
9dd4e5a9b0
2 changed files with 6 additions and 1 deletions
  1. 4 0
      changes/bug6141
  2. 2 1
      src/common/util.h

+ 4 - 0
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.
+

+ 2 - 1
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);