preventing from [-Werror=unused-result] (3#)

This commit is contained in:
Václav Šmejkal 2022-12-04 19:49:06 +01:00
parent d94a65e50d
commit 385f39b05d
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -40,7 +40,7 @@ int main(void)
buffer = malloc(bufferSize + 1); buffer = malloc(bufferSize + 1);
//LOAD jsonFile //LOAD jsonFile
fread(buffer, bufferSize, 1, fileBuffer); if (fread(buffer, bufferSize, 1, fileBuffer) == 0) abort(); //TODO: Make it safe
printf("%s\n", buffer); printf("%s\n", buffer);