Skip to content

Commit

Permalink
Fix warnings for unused vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Sep 23, 2024
1 parent 1e6ca59 commit 2abe1ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cups/ppd-cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -3222,8 +3222,7 @@ _ppdCreateFromIPP2(
int have_qdraft = 0,/* Have draft quality? */
have_qhigh = 0; /* Have high quality? */
char msgid[256]; /* Message identifier (attr.value) */
const char *keyword, /* Keyword value */
*msgstr; /* Localized string */
const char *keyword; /* Keyword value */
cups_array_t *strings = NULL;/* Printer strings file */
struct lconv *loc = localeconv();
/* Locale data */
Expand Down Expand Up @@ -5009,9 +5008,8 @@ _ppdCreateFromIPP2(
{
ipp_t *preset = ippGetCollection(attr, i);
/* Preset collection */
const char *preset_name = ippGetString(ippFindAttribute(preset, "preset-name", IPP_TAG_ZERO), 0, NULL),
const char *preset_name = ippGetString(ippFindAttribute(preset, "preset-name", IPP_TAG_ZERO), 0, NULL);
/* Preset name */
*localized_name; /* Localized preset name */
ipp_attribute_t *member; /* Member attribute in preset */
const char *member_name; /* Member attribute name */
char member_value[256]; /* Member attribute value */
Expand Down

0 comments on commit 2abe1ba

Please sign in to comment.