#681 Unnerving Warnings using gmshreader with gcc-4.3.4
Metadata
Property | Value |
---|---|
Reported by | Martin Nolte (nolte@mathematik.uni-freiburg.de) |
Reported at | Dec 4, 2009 15:17 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Last edited at | Dec 13, 2009 22:14 |
Closed by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Closed at | Dec 13, 2009 22:14 |
Closed in version | Unknown |
Resolution | Fixed |
Comment |
Description
When using gmshreader with gcc-4.3.4, you get the following beautiful set of warnings:
gmshtest-alberta.cc:71: instantiated from here
../../../../../dune/grid/io/file/gmshreader.hh:573: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:577: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:581: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:586: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:590: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:597: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:606: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:611: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:615: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:622: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:627: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:637: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:649: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:661: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:674: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:687: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:693: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:709: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:712: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:715: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:720: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:723: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:728: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:732: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:737: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:740: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:745: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:750: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:764: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:777: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:791: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:802: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:814: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:817: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
../../../../../dune/grid/io/file/gmshreader.hh:746: warning: ‘physical_entity’ may be used uninitialized in this function
mv -f .deps/gmshtest_alu-gmshtest-alberta.Tpo .deps/gmshtest_alu-gmshtest-alberta.Po