]> granicus.if.org Git - check/commitdiff
tests: add prototype for escape_percent()
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 30 Jul 2014 12:49:08 +0000 (12:49 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 30 Jul 2014 12:49:08 +0000 (12:49 +0000)
clang++ emitted an error if the prototype was not present

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1184 64e312b2-a51f-0410-8e61-82d0ca0eb02a

tests/check_check_master.c

index 1fe409b388c673489a2616a8b5c02fc781699788..0484488cb7f9c1c0ae0ef40c521076bab7aaea85 100644 (file)
@@ -278,6 +278,7 @@ END_TEST
  * that the returned string is allocated memory that
  * must be freed by the caller.
  */
+char * escape_percent(const char *original, size_t original_size);
 char * escape_percent(const char *original, size_t original_size)
 {
   /* In the worst case every character is a %*/