Building kopete-16.04.0 with GCC-6.1.0 fails with: In file included from /var/tmp/portage/kde-apps/kopete-16.04.0/work/kopete-16.04.0/plugins/history2/history2logger.cpp:19:0: /var/tmp/portage/kde-apps/kopete-16.04.0/work/kopete-16.04.0/plugins/history2/history2logger.h:97:81: error: could not convert 'false' from 'bool' to 'const Kopete::MetaContact*' int offset=0, const Kopete::MetaContact *c=false, bool reverseOrder=true); With gcc-6, only integer literals can be used as null pointer constants (see https://gcc.gnu.org/gcc-6/porting_to.html). Reproducible: Always Steps to Reproduce: 1. emerge -p =kde-apps/kopete-16.04.0 Actual Results: In file included from /var/tmp/portage/kde-apps/kopete-16.04.0/work/kopete-16.04.0/plugins/history2/history2logger.cpp:19:0: /var/tmp/portage/kde-apps/kopete-16.04.0/work/kopete-16.04.0/plugins/history2/history2logger.h:97:81: error: could not convert 'false' from 'bool' to 'const Kopete::MetaContact*' int offset=0, const Kopete::MetaContact *c=false, bool reverseOrder=true); Expected Results: Successful merge
Created attachment 98951 [details] kopete-16.04.0-gcc6.patch Changes "const Kopete::MetaContact *c=false" to "const Kopete::MetaContact *c=nullptr".
Created attachment 99003 [details] kopete-16.04.0-gcc6.patch nullptr is not available for gnu++98 but NULL works fine for gnu++98 and gnu++14
Please submit this patch through reviewboard.kde.org if possible. Patches through Bugzilla are likely to get lost.
(In reply to Luca Beltrame from comment #3) > Please submit this patch through reviewboard.kde.org if possible. Patches > through Bugzilla are likely to get lost. Done: https://git.reviewboard.kde.org/r/128006/
Git commit 9f994ba6950117cbbeefc6027fa0a52ce74932e2 by Pali Rohár, on behalf of Peter Levine. Committed on 31/05/2016 at 15:40. Pushed by pali into branch 'Applications/16.04'. Fix compilation with GCC 6 REVIEW: 128006 FIXED-IN: 16.04.2 M +1 -1 plugins/history2/history2logger.h http://commits.kde.org/kopete/9f994ba6950117cbbeefc6027fa0a52ce74932e2