[libbluray-devel] Silence warning on unchecked file_unlink() result in error path

hpi1 git at videolan.org
Fri Oct 9 11:34:46 CEST 2015


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Oct  7 13:05:45 2015 +0300| [41bc2de2044581741e3ac280c637d48356d4315a] | committer: hpi1

Silence warning on unchecked file_unlink() result in error path

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=41bc2de2044581741e3ac280c637d48356d4315a
---

 src/libbluray/disc/disc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/disc/disc.c b/src/libbluray/disc/disc.c
index d808b1c..8f275b8 100644
--- a/src/libbluray/disc/disc.c
+++ b/src/libbluray/disc/disc.c
@@ -480,7 +480,7 @@ int disc_cache_bdrom_file(BD_DISC *p, const char *rel_path, const char *cache_pa
             BD_DEBUG(DBG_FILE | DBG_CRIT, "error caching file %s\n", rel_path);
             file_close(fp_out);
             file_close(fp_in);
-            file_unlink(cache_path);
+            (void)file_unlink(cache_path);
             return -1;
         }
     }



More information about the libbluray-devel mailing list