[llvm-commits] [poolalloc] r137281 - /poolalloc/branches/release_27/test/type_checks/error/libclamav_snprintf1.c
Will Dietz
wdietz2 at illinois.edu
Wed Aug 10 16:41:09 PDT 2011
Author: wdietz2
Date: Wed Aug 10 18:41:09 2011
New Revision: 137281
URL: http://llvm.org/viewvc/llvm-project?rev=137281&view=rev
Log:
Fix compilation warnings causing test failures in libclamav_sprintf1.c
Modified:
poolalloc/branches/release_27/test/type_checks/error/libclamav_snprintf1.c
Modified: poolalloc/branches/release_27/test/type_checks/error/libclamav_snprintf1.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/branches/release_27/test/type_checks/error/libclamav_snprintf1.c?rev=137281&r1=137280&r2=137281&view=diff
==============================================================================
--- poolalloc/branches/release_27/test/type_checks/error/libclamav_snprintf1.c (original)
+++ poolalloc/branches/release_27/test/type_checks/error/libclamav_snprintf1.c Wed Aug 10 18:41:09 2011
@@ -13,6 +13,8 @@
#include <sys/types.h>
#include <stdarg.h>
+#include <stdio.h>
+#include <string.h>
static void
dopr(char *buffer, size_t maxlen, const char *format, va_list args);
@@ -529,6 +531,7 @@
return bytes;
}
-void main () {
+int main () {
mdprintf("%d %s %f", 5.0, "arushi", 4.0);
+ return 0;
}
More information about the llvm-commits
mailing list