Make it explicit that we do not care about the return code of these unlink() calls. Warned-by: coverity
@@ -65,5 +65,5 @@ cu_filename(int argc, void **argv)
{
const char *filename = argv[0];
- unlink(filename);
+ (void)unlink(filename);
}
@@ -332,7 +332,7 @@ void modstatdb_shutdown(void) {
modstatdb_checkpoint();
/* Tidy up a bit, but don't worry too much about failure. */
fclose(importanttmp);
- unlink(importanttmpfile);
+ (void)unlink(importanttmpfile);
varbuf_destroy(&uvb);
/* Fall through. */
case msdbrw_needsuperuserlockonly:
@@ -165,7 +165,7 @@ check_writable_dir(struct file *f)
if (tmpfd < 0)
ohshite(_("error checking '%s'"), f->name);
close(tmpfd);
- unlink(tmpname);
+ (void)unlink(tmpname);
free(tmpname);