I've noticed that there are a lot of warnings like "ignoring return value of ‘fread’, declared with attribute warn_unused_result".
It's always related with standard functions that return values ignored by us. After a seeking over internet. it looks like this behaviour can not be deactivated , at least with o3 activated, and that's "our fault" cause all those returned values should be token in care for a good error handling.
I propose changing this (warned) line:
Code:
fscanf(fp,"%i\n",&visu);
with this one:
Code:
if(!fscanf(fp,"%i\n",&visu)) {raydium_log("ERROR: can not read data from file.");return 0;}
I think is important to choose a default solution to this warning, cause it appears a lot of times during the compilation. I think those warnings are making hard to see real errors/warnings.