#3880: gcc warnings: ignoring return from fscanf
--------------------------+------------------------------------
 Reporter:  pabs          |             Owner:
     Type:  bug           |            Status:  new
 Priority:  normal        |         Milestone:  unspecified
Component:  Build system  |           Version:  3.1.0
 Keywords:                |  Operating System:  GNU/Linux 64bit
--------------------------+------------------------------------
 {{{
 g++ -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE=1 -D_REENTRANT
 -I/usr/include/SDL    -I/usr/include/libpng12    -D__STDC_FORMAT_MACROS
 -D__STDC_LIMIT_MACROS -DNDEBUG
 -DWZ_DATADIR="\"/usr/share/games/warzone2100\""
 -DLOCALEDIR="\"/usr/share/locale\"" -I.. -I../tools -I. -I../lib/framework
 -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore
 -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtScript
 -D_FORTIFY_SOURCE=2  -g -O2 -fPIE -fstack-protector --param=ssp-buffer-
 size=4 -Wformat -Werror=format-security -fstack-protector -c -o maptest.o
 maptest.cpp
 maptest.cpp: In function 'int main(int, char**)':
 maptest.cpp:27:34: warning: ignoring return value of 'int fscanf(FILE*,
 const char*, ...)', declared with attribute warn_unused_result [-Wunused-
 result]
 gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE=1 -D_REENTRANT
 -I/usr/include/SDL    -I/usr/include/libpng12    -D__STDC_FORMAT_MACROS
 -D__STDC_LIMIT_MACROS -DNDEBUG
 -DWZ_DATADIR="\"/usr/share/games/warzone2100\""
 -DLOCALEDIR="\"/usr/share/locale\"" -I.. -I../tools -I. -I../lib/framework
 -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore
 -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtScript
 -D_FORTIFY_SOURCE=2 -g -g -O2 -fPIE -fstack-protector --param=ssp-buffer-
 size=4 -Wformat -Werror=format-security -fstack-protector -c modeltest.c
 modeltest.c: In function 'main':
 modeltest.c:248:9: warning: ignoring return value of 'fscanf', declared
 with attribute warn_unused_result [-Wunused-result]
 --
 g++ -DHAVE_CONFIG_H -I. -I..  -D_GNU_SOURCE=1 -D_REENTRANT
 -I/usr/include/SDL    -I/usr/include/libpng12    -D__STDC_FORMAT_MACROS
 -D__STDC_LIMIT_MACROS -DNDEBUG
 -DWZ_DATADIR="\"/usr/share/games/warzone2100\""
 -DLOCALEDIR="\"/usr/share/locale\"" -I.. -I../tools -I. -I../lib/framework
 -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore
 -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtScript
 -D_FORTIFY_SOURCE=2  -g -O2 -fPIE -fstack-protector --param=ssp-buffer-
 size=4 -Wformat -Werror=format-security -fstack-protector -c -o lint.o
 lint.cpp
 qtscripttest.cpp: In function 'int main(int, char**)':
 qtscripttest.cpp:24:34: warning: ignoring return value of 'int
 fscanf(FILE*, const char*, ...)', declared with attribute
 warn_unused_result [-Wunused-result]
 }}}

-- 
Ticket URL: <http://developer.wz2100.net/ticket/3880>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to