Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
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:
Fixed in #7013
Sorry, something went wrong.
No branches or pull requests