Author: jmb
Date: Mon Jan 19 19:22:46 2009
New Revision: 6149

URL: http://source.netsurf-browser.org?rev=6149&view=rev
Log:
Squash warnings

Modified:
    trunk/libcss/test/parse-auto.c
    trunk/libcss/test/parse2-auto.c

Modified: trunk/libcss/test/parse-auto.c
URL: 
http://source.netsurf-browser.org/trunk/libcss/test/parse-auto.c?rev=6149&r1=6148&r2=6149&view=diff
==============================================================================
--- trunk/libcss/test/parse-auto.c (original)
+++ trunk/libcss/test/parse-auto.c Mon Jan 19 19:22:46 2009
@@ -323,7 +323,7 @@
        testnum++;
 
        if (sheet->rule_count != explen) {
-               printf("%d: Got %d rules. Expected %d\n",
+               printf("%d: Got %d rules. Expected %zu\n",
                                testnum, sheet->rule_count, explen);
                assert(0 && "Unexpected number of rules");
        }
@@ -395,7 +395,7 @@
                assert(0 && "Unexpected bytecode");
        } else if (e->bytecode != NULL && s->style != NULL) {
                if (s->style->length != e->bcused) {
-                       printf("%d: Got length %d, Expected %d\n",
+                       printf("%d: Got length %d, Expected %zu\n",
                                testnum, s->style->length, 
                                e->bcused);
                        assert(0 && "Bytecode lengths differ");
@@ -429,7 +429,7 @@
                                i += sizeof (void *) - 1;
                        } else if (((uint8_t *) s->style->bytecode)[i] != 
                                        e->bytecode[i]) {
-                               printf("%d: Bytecode differs at %d\n",
+                               printf("%d: Bytecode differs at %zu\n",
                                        testnum, i);
                                while (i < e->bcused) {
                                        printf("%.2x ", 

Modified: trunk/libcss/test/parse2-auto.c
URL: 
http://source.netsurf-browser.org/trunk/libcss/test/parse2-auto.c?rev=6149&r1=6148&r2=6149&view=diff
==============================================================================
--- trunk/libcss/test/parse2-auto.c (original)
+++ trunk/libcss/test/parse2-auto.c Mon Jan 19 19:22:46 2009
@@ -188,9 +188,9 @@
        dump_sheet(sheet, buf, &buflen);
 
        if (2 * explen - buflen != explen || memcmp(buf, exp, explen) != 0) {
-               printf("Expected (%zu):\n%.*s\n", explen, explen, exp);
+               printf("Expected (%zu):\n%.*s\n", explen, (int) explen, exp);
                printf("Result (%zu):\n%.*s\n", 2 * explen - buflen,
-                       2 * explen - buflen, buf);
+                       (int) (2 * explen - buflen), buf);
                assert(0 && "Result doesn't match expected");
        }
 


_______________________________________________
netsurf-commits mailing list
[email protected]
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to