[llvm-commits] [poolalloc] r137446 - in /poolalloc/trunk/test: dsa/local/bitfields3.c type_checks/correct/libclamav_snprintf.c
Will Dietz
wdietz2 at illinois.edu
Fri Aug 12 01:09:12 PDT 2011
Author: wdietz2
Date: Fri Aug 12 03:09:12 2011
New Revision: 137446
URL: http://llvm.org/viewvc/llvm-project?rev=137446&view=rev
Log:
Patch up test cases to fix warnings reported by clang.
Modified:
poolalloc/trunk/test/dsa/local/bitfields3.c
poolalloc/trunk/test/type_checks/correct/libclamav_snprintf.c
Modified: poolalloc/trunk/test/dsa/local/bitfields3.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/dsa/local/bitfields3.c?rev=137446&r1=137445&r2=137446&view=diff
==============================================================================
--- poolalloc/trunk/test/dsa/local/bitfields3.c (original)
+++ poolalloc/trunk/test/dsa/local/bitfields3.c Fri Aug 12 03:09:12 2011
@@ -15,8 +15,8 @@
struct taxonomy t = {0, 0, 21};
t.kingdom = 1;
t.phylum = 7;
- printf("sizeof(struct taxonomy): %d bytes\n",sizeof(struct taxonomy));
- printf("taxonomy: 0x%x\n",t);
+ printf("sizeof(struct taxonomy): %d bytes\n",(int)sizeof(struct taxonomy));
+ printf("taxonomy: 0x%x\n",(unsigned int)t);
printf("kingdom: %d\n",t.kingdom);
printf("phylum: %d\n",t.phylum);
printf("genus: %d\n",t.genus);
Modified: poolalloc/trunk/test/type_checks/correct/libclamav_snprintf.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/test/type_checks/correct/libclamav_snprintf.c?rev=137446&r1=137445&r2=137446&view=diff
==============================================================================
--- poolalloc/trunk/test/type_checks/correct/libclamav_snprintf.c (original)
+++ poolalloc/trunk/test/type_checks/correct/libclamav_snprintf.c Fri Aug 12 03:09:12 2011
@@ -14,6 +14,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
+#include <ctype.h>
static void
dopr(char *buffer, size_t maxlen, const char *format, va_list args);
More information about the llvm-commits
mailing list