I was wondering if don't accept return value of fscanf and fgets, can these warnings be some potentially serious problem:
Here is the code:warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
Makefile setting:Code:fscanf(modelfl,"%ld%*[^\n]\n", &model->kernel_parm.kernel_type); // model is just some realization of a structure fgets(line,(int)ll,modelfl);
These warnings only occur when -O3 is specified. If nothing is specified, then there will be no warning.CFLAGS= $(SFLAGS) -O3 # release C-Compiler flags
LFLAGS= $(SFLAGS) -O3 # release linker flags
Thanks in advance!