[c] Ignore unused result from fread (#1644)

src/spine/extension.c:95:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
   95 |  fread(data, 1, *length, file);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
Jan Niklas Hasse 2020-04-13 11:05:42 +02:00 committed by GitHub
parent b44154e2b7
commit c0f101969d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,8 @@ char* _spReadFile (const char* path, int* length) {
fseek(file, 0, SEEK_SET); fseek(file, 0, SEEK_SET);
data = MALLOC(char, *length); data = MALLOC(char, *length);
fread(data, 1, *length, file); size_t result = fread(data, 1, *length, file);
UNUSED(result);
fclose(file); fclose(file);
return data; return data;