Skip to content

Fix compilation with new gcc #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
cast unused return to void
should solve the warning of unused return value.
niclas committed Jan 18, 2022
commit 7cc605cb0c0534b6444338a5879527facea23d57
4 changes: 2 additions & 2 deletions xdu.c
Original file line number Diff line number Diff line change
@@ -730,10 +730,10 @@ void printpath(int x, int y)
np = findnode(&top, x, y);
if (np == NULL)
return;
asprintf(&path, "%s", np->name);
(void) asprintf(&path, "%s", np->name);
while (np->parent != NULL) {
tmp_path = path;
asprintf(&path, "%s/%s", np->parent->name, path);
(void) asprintf(&path, "%s/%s", np->parent->name, path);
np = np->parent;
free(tmp_path);
}