FLTK logo

Re: [fltk/fltk] Compiler warnings with msys2 (current) + fltk-1.4.x current (Issue #296)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Compiler warnings with msys2 (current) + fltk-1.4.x current (Issue #296) Albrecht Schlosser Nov 25, 2021  
 

... to silence over zealous compiler warnings ...

ISTR that we had similar warnings already. I believe the compiler might issue a warning even if the given argument is a pure output parameter - just because the compiler doesn't know it better because it can't "look into the function code". That said, it seems to be easier to initialize all variables that are used as parameters to function calls later. Just to be sure and silence such (formally) unnecessary warnings.

Just my 2 ct, I won't dig deeper into this, personally.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.