diff options
author | Michael Sweet <michael.r.sweet@gmail.com> | 2016-03-23 18:52:56 -0400 |
---|---|---|
committer | Michael Sweet <michael.r.sweet@gmail.com> | 2016-03-23 18:52:56 -0400 |
commit | 807315e64e0867fb7cea00b35ba4454691e844e2 (patch) | |
tree | 1463d4222224e802e06f487930663bca5868768b /cups/array.c | |
parent | 6ef28fe57295474684adb70ea457f3620d0c4eb0 (diff) | |
download | cups-807315e64e0867fb7cea00b35ba4454691e844e2.tar.gz |
Changes to eliminate warnings from new Clang.
Diffstat (limited to 'cups/array.c')
-rw-r--r-- | cups/array.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/cups/array.c b/cups/array.c index 855706994..cbe52e59f 100644 --- a/cups/array.c +++ b/cups/array.c @@ -86,7 +86,7 @@ int /* O - 1 on success, 0 on failure */ cupsArrayAdd(cups_array_t *a, /* I - Array */ void *e) /* I - Element */ { - DEBUG_printf(("2cupsArrayAdd(a=%p, e=%p)", a, e)); + DEBUG_printf(("2cupsArrayAdd(a=%p, e=%p)", (void *)a, e)); /* * Range check input... @@ -125,8 +125,7 @@ _cupsArrayAddStrings(cups_array_t *a, /* I - Array */ int status = 1; /* Status of add */ - DEBUG_printf(("_cupsArrayAddStrings(a=%p, s=\"%s\", delim='%c')", a, s, - delim)); + DEBUG_printf(("_cupsArrayAddStrings(a=%p, s=\"%s\", delim='%c')", (void *)a, s, delim)); if (!a || !s || !*s) { @@ -624,7 +623,7 @@ int /* O - 0 on failure, 1 on success */ cupsArrayInsert(cups_array_t *a, /* I - Array */ void *e) /* I - Element */ { - DEBUG_printf(("2cupsArrayInsert(a=%p, e=%p)", a, e)); + DEBUG_printf(("2cupsArrayInsert(a=%p, e=%p)", (void *)a, e)); /* * Range check input... @@ -1027,7 +1026,7 @@ cups_array_add(cups_array_t *a, /* I - Array */ int diff; /* Comparison with current element */ - DEBUG_printf(("7cups_array_add(a=%p, e=%p, insert=%d)", a, e, insert)); + DEBUG_printf(("7cups_array_add(a=%p, e=%p, insert=%d)", (void *)a, e, insert)); /* * Verify we have room for the new element... @@ -1207,8 +1206,7 @@ cups_array_find(cups_array_t *a, /* I - Array */ diff; /* Comparison with current element */ - DEBUG_printf(("7cups_array_find(a=%p, e=%p, prev=%d, rdiff=%p)", a, e, prev, - rdiff)); + DEBUG_printf(("7cups_array_find(a=%p, e=%p, prev=%d, rdiff=%p)", (void *)a, e, prev, (void *)rdiff)); if (a->compare) { |