Skip to content

Commit

Permalink
IconMan: suppress -Wformat-overflow=
Browse files Browse the repository at this point in the history
The compiler is unable to determine if these values are never null.
Although it's unlikely to be encountered, provide fallback values in the
call to ConsoleDebug that uses them directly.

Signed-off-by: Matt Jolly <kangie@gentoo.org>
  • Loading branch information
Kangie authored and ThomasAdam committed Nov 3, 2024
1 parent 1f02250 commit a9e440e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/FvwmIconMan/winlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ static int matches_string (NameType type, char *pattern, char *tname,

ConsoleDebug (WINLIST, "matches_string: type: 0x%x pattern: %s\n",
type, pattern);
ConsoleDebug (WINLIST, "\tstrings: %s:%s %s:%s\n", tname, iname,
rname, cname);
ConsoleDebug (WINLIST, "\tstrings: %s:%s %s:%s\n",
tname ? tname : "(null)",
iname ? iname : "(null)",
rname ? rname : "(null)",
cname ? cname : "(null)");

if (tname && (type == ALL_NAME || type == TITLE_NAME)) {
ans |= matchWildcards (pattern, tname);
Expand Down

0 comments on commit a9e440e

Please sign in to comment.