FLTK logo

Re: [fltk.coredev] RFC: Disable Visual Studio warning about

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.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: RFC: Disable Visual Studio warning about Bill Spitzak Feb 22, 2021  
 
I don't thinki double->float warnings are at all useful. They might be useful if both VC++ and GCC stopped them from happening when you are simply assigning a constant to a float, or check the number of digits in the constant to make a guess as to whether the user really is assuming higher accuracy than a float.


On Mon, Feb 22, 2021 at 7:00 AM Manolo <manolo.gouy@gmail.com> wrote:
On Monday, February 22, 2021 at 12:55:45 PM UTC+1 Albrecht Schlosser wrote:

(2) Use a new file just for the nanosvg implementation (maybe
fl_nanosvg.cxx?) and use the #pragma before the inclusion of nanosvg
headers (no restore needed [1]).

That is a convenient solution but it would require some glue code
between FLTK and nanosvg to be put in practice because FLTK
uses one struct and 4 functions (struct NSVGimage, nsvgDelete(),
nsvgParse(), nsvgRasterizeXY() and nsvgCreateRasterizer()) defined
by nanosvg.h and nanosvgrast.h. Moreover, this would require to duplicate
in FLTK the declaration of "struct NSVGimage" instead of using that
found in nanosvg.h. Thus, option (1) may be more convenient.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/5d026293-5e04-406f-8ced-ecaec6ca42f2n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/CAL-8oAisGQ6idJ0r0SU75dG1-ki0LqZgfvHN2szvNmpkDjKn5A%40mail.gmail.com.
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'.