New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Clang warnings and build failure on OSX 10.12 #3501
Conversation
Kudos to Partha over at pixls.us for finding and fixing!
Compiles and runs fine here - Gentoo, GCC-5.4.0, CMake-3.5.2. |
Compiles and runs fine. Win7, GCC 5.3.0, CMake 3.4.1 |
Thank you both for testing. I'll wait for Partha's feedback before I'll merge. If you have any objections, I'll wait after RT5 is released. |
I don't want to include unnecessary last-minute changes, but if this fixes a build failure then it would be good to have it for RT5, in which case the faster its committed the sooner it gets properly tested (by Open Build Service which builds for many distributions, etc.) |
@Beep6581 Agreed. Waiting for Partha's response, will merge then. |
I checked out the fix-clang-build branch. I rebuilt rawtherapee and it went without errors. Some warnings about using std::abs I can live with. More importantly, you also fixed the annoying gtkmm warning on launch. That was an important fix! I opened rawtherapee and was able to export an image to McGimp. This is good. From my pov, you are ready to merge with master. Thanks, |
@Partha1b Thanks for taking the time and reporting back! I've merged the changes now.
Hm, that one wasn't by me. But @Hombre57 and @Beep6581 will be glad to here it. 😄
Although this PR is closed now, you can still comment on it, and I'd be glad, if you would share those warnings with us, as a wrong type for Thanks for your hints! Best |
Sure thing! Here are all the warnings I get while compiling:
|
Yep, thought it: This is wrong, indeed. Great warning. This is a common fallout when converting from C++03 to C++11. @Beep6581 I'll push a new PR and branch for this tonight.
@Hombre57 I think, Clang is right here, too.
or am I missing something? Best |
@heckflosse Clang also warns about this line in dcraw.cpp. Could you have a look? |
I think that |
Over at pixls.us user Partha has fixed his OSX 10.12 build. I've kind of incorporated his fixes and had
master
compile with Clang 3.8 under Debian Stretch, which reported some warnings that I also fixed (apart from missing enum values in switch statements).