- MakeSingleColorImage() is unused in non Mac, silence the compiler warning
[Qt] fix unused function warning in scicon.cpp #6327
pull Diapolo wants to merge 1 commits into bitcoin:master from Diapolo:scicon changing 1 files +7 −7-
Diapolo commented at 7:19 PM on June 23, 2015: none
-
157ed06a97
[Qt] fix unused function warning in scicon.cpp
- MakeSingleColorImage() is unused in non Mac, silence the compiler warning
-
luke-jr commented at 8:37 PM on June 23, 2015: member
This seems unnecessarily convoluted IMO...
-
luke-jr commented at 8:44 PM on June 23, 2015: member
If you're going to use #if, just remove the whole function...?
-
penguin1333 commented at 8:50 PM on June 23, 2015: none
I'd say to just go with it. If it removes warnings, then less confusion :)
I didn't really review the code very much, but from what is said it does, it sounds good to me.
(Again, I did not read the code. I glanced at it, nor have I tested it.)
-
jonasschnelli commented at 6:31 AM on June 24, 2015: contributor
Prefere #6328 because it's based on preprocessor macros.
- laanwj closed this on Jul 2, 2015
-
laanwj commented at 7:57 AM on July 3, 2015: member
@diapolo My point in #6328 is that non-breaking platform specific style differences should be based on a runtime decision, not on #ifdefs (or maybe one set of #ifdef at the initialization of the program, which can be overridden using an option). See my post here: #6328 (comment)
- Diapolo deleted the branch on Aug 10, 2015
- DrahtBot locked this on Sep 8, 2021