From 543d6d41cb136cb267cbda65f4e752ba4ec0a722 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Wed, 1 Oct 2014 12:52:14 +0400 Subject: [PATCH] More compilation warnings enabled and made sure that we have fixed #4 --- example/tutorial8/refcounting_plugin.cpp | 2 +- test/Jamfile.v2 | 4 +++- test/structures_tests.cpp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/example/tutorial8/refcounting_plugin.cpp b/example/tutorial8/refcounting_plugin.cpp index d13755d..477cbd3 100644 --- a/example/tutorial8/refcounting_plugin.cpp +++ b/example/tutorial8/refcounting_plugin.cpp @@ -28,7 +28,7 @@ public: return 1.0; } - float calculate(float x, float y) { + float calculate(float /*x*/, float /*y*/) { return 0; } //-> diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 9169fce..ead28ec 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -1,5 +1,5 @@ # -# Copyright Renato Tegon Forti 2011 - 2013. +# Copyright Renato Tegon Forti, Antony Polukhin 2011 - 2014. # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) @@ -23,8 +23,10 @@ project # linux linux:"-ldl" linux:"-fvisibility=hidden" + gcc:"-Wall -Wextra -pedantic -Wno-long-long" # others + BOOST_SYSTEM_NO_DEPRECATED /boost/system//boost_system /boost/filesystem//boost_filesystem multi diff --git a/test/structures_tests.cpp b/test/structures_tests.cpp index 0d86909..b60d3a7 100644 --- a/test/structures_tests.cpp +++ b/test/structures_tests.cpp @@ -293,7 +293,7 @@ void generic_header_check(const T& v1, const dd::load_command_& v2) { // Unit Tests -int test_main(int argc, char* argv[]) { +int test_main(int /*argc*/, char* /*argv*/[]) { #if BOOST_OS_WINDOWS generic_header_check(::IMAGE_DOS_HEADER(), dd::IMAGE_DOS_HEADER_());