From 7ac6ce213393fe5c2ef116a4d68d9dd4dd241eb2 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 29 Aug 2013 23:30:42 -0700 Subject: Fix ICC warnings about functions declared but not used Added Q_DECL_UNUSED for the function used in Q_ASSERT; removed the functions that really weren't used and added the #ifdef for the function that was only used under #ifdef. qmetaobjectbuilder.cpp(93): warning #177: function "priv" was declared but never referenced qobject.cpp(2349): warning #177: function "check_and_warn_compat" was declared but never referenced qpathsimplifier.cpp(141): error #177: function "::Rational::isValid" was declared but never referenced qtextengine.cpp(2584): error #177: function "::QScriptItemComparator::operator()(const QScriptItem &, const QScriptItem &)" was declared but never referenced Change-Id: I89a140d59211f10ecd88d751f0bcc0ea2fedff7f Reviewed-by: Eskil Abrahamsen Blomfeldt Reviewed-by: Olivier Goffart --- src/gui/painting/qpathsimplifier.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/gui/painting/qpathsimplifier.cpp') diff --git a/src/gui/painting/qpathsimplifier.cpp b/src/gui/painting/qpathsimplifier.cpp index c65daf0da2..1e9c483ff8 100644 --- a/src/gui/painting/qpathsimplifier.cpp +++ b/src/gui/painting/qpathsimplifier.cpp @@ -138,7 +138,6 @@ Fraction fraction(unsigned int n, unsigned int d) { struct Rational { - bool isValid() const { return fraction.isValid(); } int integer; Fraction fraction; }; -- cgit v1.2.3