summaryrefslogtreecommitdiff
path: root/libs/thread/build
diff options
context:
space:
mode:
Diffstat (limited to 'libs/thread/build')
-rw-r--r--libs/thread/build/Jamfile.v27
-rw-r--r--libs/thread/build/has_atomic_flag_lockfree_test.cpp24
2 files changed, 18 insertions, 13 deletions
diff --git a/libs/thread/build/Jamfile.v2 b/libs/thread/build/Jamfile.v2
index 17d44a597..7e06cb3c4 100644
--- a/libs/thread/build/Jamfile.v2
+++ b/libs/thread/build/Jamfile.v2
@@ -63,6 +63,7 @@ project boost/thread
<toolset>gcc:<cxxflags>-Wno-variadic-macros
#<toolset>gcc:<cxxflags>-Wunused-local-typedefs
<toolset>gcc:<cxxflags>-Wunused-function
+ <toolset>gcc:<cxxflags>-Wno-unused-parameter
<toolset>darwin:<cxxflags>-Wextra
<toolset>darwin:<cxxflags>-pedantic
@@ -72,18 +73,20 @@ project boost/thread
<toolset>darwin:<cxxflags>-Wno-variadic-macros
#<toolset>darwin:<cxxflags>-Wunused-local-typedefs
<toolset>darwin:<cxxflags>-Wunused-function
+ <toolset>darwin:<cxxflags>-Wno-unused-parameter
#<toolset>pathscale:<cxxflags>-Wextra
<toolset>pathscale:<cxxflags>-Wno-long-long
<toolset>pathscale:<cxxflags>-pedantic
+ <toolset>clang:<warnings>on
<toolset>clang:<cxxflags>-Wextra
#<toolset>clang:<cxxflags>-ansi
#<toolset>clang:<cxxflags>-fpermissive
<toolset>clang:<cxxflags>-Wno-long-long
<toolset>clang:<cxxflags>-Wunused-function
<toolset>clang:<cxxflags>-Wno-variadic-macros
- <toolset>clang:<warnings>on
+ <toolset>clang:<cxxflags>-Wno-unused-parameter
#<toolset>gcc-mingw-4.4.0:<cxxflags>-fdiagnostics-show-option
#<toolset>gcc-mingw-4.5.0:<cxxflags>-fdiagnostics-show-option
@@ -116,7 +119,9 @@ project boost/thread
<toolset>intel:<cxxflags>-wd1418
<toolset>intel:<cxxflags>-wd2415
+ <toolset>msvc:<cxxflags>/wd4100
<toolset>msvc:<cxxflags>/wd4512
+ <toolset>msvc:<cxxflags>/wd6246
# : default-build <threading>multi
diff --git a/libs/thread/build/has_atomic_flag_lockfree_test.cpp b/libs/thread/build/has_atomic_flag_lockfree_test.cpp
index 3190745fd..ca6940546 100644
--- a/libs/thread/build/has_atomic_flag_lockfree_test.cpp
+++ b/libs/thread/build/has_atomic_flag_lockfree_test.cpp
@@ -1,13 +1,13 @@
-// Copyright (c) 2013, Petr Machata, Red Hat Inc.
-//
-// Use modification and distribution are subject to the boost Software
-// License, Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
-
-#include "../../../boost/atomic.hpp"
-#include "../../../boost/static_assert.hpp"
+// Copyright (c) 2013, Petr Machata, Red Hat Inc.
+//
+// Use modification and distribution are subject to the boost Software
+// License, Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).
-int main(int argc, char *argv[])
-{
- BOOST_STATIC_ASSERT(BOOST_ATOMIC_FLAG_LOCK_FREE);
- return 0;
-} \ No newline at end of file
+#include "../../../boost/atomic.hpp"
+#include "../../../boost/static_assert.hpp"
+
+int main(int argc, char *argv[])
+{
+ BOOST_STATIC_ASSERT(BOOST_ATOMIC_FLAG_LOCK_FREE);
+ return 0;
+}