Prevent some compilation warnings on MinGW#324
Conversation
|
I saw this before, and this has been "fixed" in a few places in DPF. in any case, this double casting doesnt look nice. |
9421b8e to
db335ab
Compare
|
Right, NanoVG.cpp contains a much cleaner solution: Force-pushed to replace first version |
db335ab to
39bf2c5
Compare
|
Thanks! |
|
Sure, I was unsure about the style. Fixed. |
|
Style is always a tricky thing, I sorta like the way juce does it with indented macros, but it also gets confusing when lots of them as nested together.. By the way, don't we need this same change in pugl.cpp ? |
|
Yeah I see in https://github.com/DISTRHO/DPF/blob/main/dgl/src/pugl.cpp#L216 we need to place the same macros. |
|
That's correct, also updated! |
|
Cool, thanks a lot! |
Found this working solution official-stockfish/Stockfish#1619 (comment) . There might be others...
Suppresses these warnings which are generated multiple times when compiling the examples: