Menu

#9 62 compilation warnings on vs9 & wxHEAD

open
Interface (4)
5
2011-12-05
2008-11-14
fantaz
No

It's not mutch of a problem, as these warnings can be easily avoidable but it's really ugly to see them

The compiler issues 61 C4996 warnings.
Here is the message:
This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
possible solution would be to add in CMakefile.txt
_CRT_SECURE_NO_WARNINGS preprocessor definition
Just to clarify things, the warning is issued from wx's wxcrt.h file and affects strcpy, wcscpy, strncpy, wcsncpy etc. functions. WX devs avoided these warnings by defining adding _CRT_SECURE_NO_WARNINGS preprosessor definition

And finally, in line 749 of the wxVTKRenderWindowInteractor.cxx the compiler issues warning C4800, that is:
'int' : forcing value to bool 'true' or 'false'
possible solution would be to add "!=0" to the expression, which gives the expression type bool,
like
RenderWhenDisabled=false;
if(newValue!=0){RenderWhenDisabled=true;}

best regards,
fantaz

Discussion

  • Mathieu Malaterre

    Is this still the case in wxVTK 1.4 ?

     
  • Mathieu Malaterre

    • labels: --> Interface
    • assigned_to: nobody --> malat
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.