You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiled JGRPP 0.28.0 a few days ago under Ubuntu 16.04.5 and got a compiler warning.
[SRC] Compiling script/squirrel.cpp
/home/auge/Projekte/OpenTTD-patches/Arbeitskopie/src/script/squirrel.cpp: In member function ‘SQRESULT Squirrel::LoadFile(HSQUIRRELVM, const char*, SQBool)’:
/home/auge/Projekte/OpenTTD-patches/Arbeitskopie/src/script/squirrel.cpp:452:36: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(&bom, 1, sizeof(bom), file); // Inside tar, no point checking return va
^
/home/auge/Projekte/OpenTTD-patches/Arbeitskopie/src/script/squirrel.cpp:490:35: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(&uc, 1, sizeof(uc), file);
^
I filed an issue in JGRs repo (see JGRennison/OpenTTD-patches#70) in a first step. JGR suspects the commit 6accbf9 of the OpenTTD repo as the cause of the warning. Do you need any further information?
The text was updated successfully, but these errors were encountered:
Compiled JGRPP 0.28.0 a few days ago under Ubuntu 16.04.5 and got a compiler warning.
I filed an issue in JGRs repo (see JGRennison/OpenTTD-patches#70) in a first step. JGR suspects the commit 6accbf9 of the OpenTTD repo as the cause of the warning. Do you need any further information?
The text was updated successfully, but these errors were encountered: