Fix some compile warns while I'm at it

This commit is contained in:
Jasmine Iwanek
2022-09-21 18:53:41 -04:00
parent 28ae786d62
commit ece9f7ec72
4 changed files with 6 additions and 4 deletions

View File

@@ -275,7 +275,7 @@ ini_detect_bom(char *fn)
#endif
if (f == NULL)
return (0);
fread(bom, 1, 3, f);
(void) !fread(bom, 1, 3, f);
if (bom[0] == 0xEF && bom[1] == 0xBB && bom[2] == 0xBF) {
fclose(f);
return 1;