minor : try to tell static analyzer that we don't care if fseek() fails
authorYann Collet <cyan@fb.com>
Sun, 14 Jan 2018 06:52:17 +0000 (22:52 -0800)
committerYann Collet <cyan@fb.com>
Sun, 14 Jan 2018 06:52:17 +0000 (22:52 -0800)
as already explained in comments.

programs/lz4io.c

index 3502038..927928a 100644 (file)
@@ -429,7 +429,7 @@ static void* LZ4IO_createDict(const char* dictFilename, size_t *dictSize) {
     /* opportunistically seek to the part of the file we care about. If this */
     /* fails it's not a problem since we'll just read everything anyways.    */
     if (strcmp(dictFilename, stdinmark)) {
-        UTIL_fseek(dictFile, -LZ4_MAX_DICT_SIZE, SEEK_END);
+        (void)UTIL_fseek(dictFile, -LZ4_MAX_DICT_SIZE, SEEK_END);
     }
 
     do {