When I ran the nightly test on Ubuntu Linux 13.10 with gcc 4.8.0, I got two compile warnings treated as errors:
The one has occured when compiling util/files.cpp in the compiler. -- files.cpp: In function 'const char* mysystem_getresult(const char*, const char*, int)': files.cpp:373:41: error: ignoring return value of 'int fscanf(FILE*, const char* , ...)', declared with attribute warn_unused_result [-Werror=unused-result] fscanf(systemFile->fptr, "%s", result); -- The other has occured when compiling src/comm/gasnet/comm-gasnet.c in the runtime. -- comm-gasnet.c: In function 'AM_fork_fast': comm-gasnet.c:142:10: error: ignoring return value of 'write', declared with att ribute warn_unused_result [-Werror=unused-result] write(2, mybuf, strlen(mybuf)); -- Both of the errors warn the return values are ignored. Thus it may be fixed by handling the results correctly. FYI, when I do the same on Debian squeeze with gcc 4.4.5 I got no error. I guess these warnings are recently appended to gcc. - Jun Nakashima The University of Tokyo ------------------------------------------------------------------------------ _______________________________________________ Chapel-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-bugs
