Merge pull request #5098 from syershov/fix-warnings

Fix warnings
This commit is contained in:
ygorshenin 2016-12-27 12:34:01 +03:00 committed by GitHub
commit 20fcd85dbe
6 changed files with 30 additions and 6 deletions

View file

@ -2,6 +2,10 @@ TARGET = oauthcpp
ROOT_DIR = ../..
include($$ROOT_DIR/common.pri)
unix|win32-g++ {
QMAKE_CXXFLAGS_WARN_ON = -w
}
INCLUDEPATH += src include
TEMPLATE = lib

View file

@ -7,10 +7,19 @@
#include <ctime>
#include <map>
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#endif
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/test/included/unit_test.hpp>
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
namespace
{
template <typename T>

View file

@ -8,6 +8,10 @@ ROOT_DIR = ../..
include($$ROOT_DIR/common.pri)
unix|win32-g++ {
QMAKE_CXXFLAGS_WARN_ON = -w
}
DEFINES *= BOOST_ERROR_CODE_HEADER_ONLY
INCLUDEPATH *= osrm-backend/include \
osrm-backend/third_party

View file

@ -17,7 +17,7 @@ win32-msvc* {
}
unix|win32-g++ {
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused -Wno-extra
QMAKE_CXXFLAGS_WARN_ON = -w
}

View file

@ -1,11 +1,18 @@
#pragma once
#define XML_STATIC
#include "3party/expat/expat_impl.h"
#include "base/logging.hpp"
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#endif
#define XML_STATIC
#include "3party/expat/expat_impl.h"
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
template <typename DispatcherT>
class XmlParser : public CExpatImpl< XmlParser<DispatcherT> >

View file

@ -127,7 +127,7 @@ win32-msvc201* {
# unix also works for Android
unix|win32-g++ {
LIBS *= -lz
QMAKE_CXXFLAGS_WARN_ON += -Wno-strict-aliasing -Wsign-compare
QMAKE_CXXFLAGS_WARN_ON += -Wno-strict-aliasing -Wsign-compare -Wno-unused-parameter
# -Wno-unused-local-typedef is not supported on clang 3.5.
IS_CLANG35 = $$system( echo | $$QMAKE_CXX -dM -E - | grep '__clang_version__.*3\.5.*' )
if (isEmpty(IS_CLANG35)){