File gcc6-fix-errors.patch of Package kdelibs4
--- kdecore/kdefakes.h.cmake 2016-05-25 09:47:03.493039540 +0200
+++ kdecore/kdefakes.h.cmake 2016-05-25 09:47:27.805502506 +0200
@@ -174,10 +174,10 @@
#if !defined(HAVE_TRUNC)
#ifdef __cplusplus
extern "C" {
-#endif
-double trunc(double);
-#ifdef __cplusplus
+double trunc(double) throw();
}
+#else
+double trunc(double);
#endif
#endif
--- khtml/ecma/kjs_traversal.cpp 2016-05-25 09:50:35.093067467 +0200
+++ khtml/ecma/kjs_traversal.cpp 2016-05-25 09:50:40.665173492 +0200
@@ -134,7 +134,7 @@
FILTER_ACCEPT DOM::NodeFilter::FILTER_ACCEPT DontDelete|ReadOnly
FILTER_REJECT DOM::NodeFilter::FILTER_REJECT DontDelete|ReadOnly
FILTER_SKIP DOM::NodeFilter::FILTER_SKIP DontDelete|ReadOnly
- SHOW_ALL DOM::NodeFilter::SHOW_ALL DontDelete|ReadOnly
+ SHOW_ALL (int)DOM::NodeFilter::SHOW_ALL DontDelete|ReadOnly
SHOW_ELEMENT DOM::NodeFilter::SHOW_ELEMENT DontDelete|ReadOnly
SHOW_ATTRIBUTE DOM::NodeFilter::SHOW_ATTRIBUTE DontDelete|ReadOnly
SHOW_TEXT DOM::NodeFilter::SHOW_TEXT DontDelete|ReadOnly