gencromfs.c:1171:3: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
This commit is contained in:
parent
5c9e72f99d
commit
7fef81ea94
1 changed files with 6 additions and 2 deletions
|
@ -72,6 +72,8 @@
|
|||
# define HOST_TGTSWAP 1
|
||||
#endif
|
||||
|
||||
#define UNUSED(a) ((void)(a))
|
||||
|
||||
/* mkstemp() has been giving me errors on Cygwin */
|
||||
|
||||
#undef USE_MKSTEMP
|
||||
|
@ -1139,7 +1141,8 @@ static int dir_notempty(const char *dirpath, const char *name,
|
|||
char *path;
|
||||
int ret;
|
||||
|
||||
asprintf(&path, "%s/%s", dirpath, name);
|
||||
ret = asprintf(&path, "%s/%s", dirpath, name);
|
||||
UNUSED(ret);
|
||||
|
||||
/* stat() should not fail for any reason */
|
||||
|
||||
|
@ -1168,7 +1171,8 @@ static int process_direntry(const char *dirpath, const char *name,
|
|||
char *path;
|
||||
int ret;
|
||||
|
||||
asprintf(&path, "%s/%s", dirpath, name);
|
||||
ret = asprintf(&path, "%s/%s", dirpath, name);
|
||||
UNUSED(ret);
|
||||
|
||||
ret = stat(path, &buf);
|
||||
if (ret < 0)
|
||||
|
|
Loading…
Reference in a new issue