kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #14223
Re: compiler warning
Mario, just FYI, you have used tabs in the fscanf alignment indentations.
2014-08-04 22:42 GMT+02:00 Mário Luzeiro <mrluzeiro@xxxxx>:
> Dick, here is my patch to the warnings in vrml_v2_modelparser.cpp
> ________________________________________
> From: Kicad-developers [kicad-developers-bounces+mrluzeiro=ua.pt@xxxxxxxxxxxxxxxxxxx] on behalf of Dick Hollenbeck [dick@xxxxxxxxxxx]
> Sent: 04 August 2014 17:30
> To: KiCad Developers
> Subject: [Kicad-developers] compiler warning
>
> Can someone please fix this:
>
>
> /svn/kicad/product/common/common.cpp:48:13: warning: #warning "You must use
> '--with-gnomeprint' or '--with-gtkprint' in your wx library configuration for full print
> capabilities." [-Wcpp]
> # warning "You must use '--with-gnomeprint' or '--with-gtkprint' in your wx
> library configuration for full print capabilities."
> ^
> /svn/kicad/product/3d-viewer/vrml_v2_modelparser.cpp: In member function ‘int
> VRML2_MODEL_PARSER::read_Transform()’:
> /svn/kicad/product/3d-viewer/vrml_v2_modelparser.cpp:160:143: warning: ignoring return
> value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
> [-Wunused-result]
> fscanf( m_file, "%f %f %f %f", &m_model->m_rotation[0],
> &m_model->m_rotation[1], &m_model->m_rotation[2], &m_model->m_rotation[3]);
>
> ^
> /svn/kicad/product/3d-viewer/vrml_v2_modelparser.cpp:167:175: warning: ignoring return
> value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
> [-Wunused-result]
> fscanf( m_file, "%f %f %f %f", &m_model->m_scaleOrientation[0],
> &m_model->m_scaleOrientation[1], &m_model->m_scaleOrientation[2],
> &m_model->m_scaleOrientation[3]);
>
> ^
> /svn/kicad/product/3d-viewer/vrml_v2_modelparser.cpp:180:43: warning: ignoring return
> value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
> [-Wunused-result]
> fscanf( m_file, "%d", &dummy );
> ^
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
References