]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-compat-util.h
git-compat-util: make UNLEAK less error-prone
[thirdparty/git.git] / git-compat-util.h
index 003e444c46edce65f04413d732c22d71d708fd4f..9bc15b0363d562fc55268419055e9cdbbeee50c3 100644 (file)
@@ -1184,9 +1184,9 @@ extern int cmd_main(int, const char **);
  */
 #ifdef SUPPRESS_ANNOTATED_LEAKS
 extern void unleak_memory(const void *ptr, size_t len);
-#define UNLEAK(var) unleak_memory(&(var), sizeof(var));
+#define UNLEAK(var) unleak_memory(&(var), sizeof(var))
 #else
-#define UNLEAK(var)
+#define UNLEAK(var) do {} while (0)
 #endif
 
 #endif