forked from boostorg/config
boost_no_priv_aggregate.cxx:
- Make dummy function uncallable (added to silence GCC warning) config_test.cpp: regression.cfg: - Regenerated boost_has_pthread_ma_st.cxx: - BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE macro test boost_has_pthread_ma_gt.cxx: - BOOST_HAS_PTHREAD_MUTEXATTR_GETTYPE macro is unused, so remove it [SVN r12551]
This commit is contained in:
@ -4,8 +4,8 @@
|
|||||||
// warranty, and with no claim as to its suitability for any purpose.
|
// warranty, and with no claim as to its suitability for any purpose.
|
||||||
|
|
||||||
// MACRO: BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
// MACRO: BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||||
// TITLE: pthread_mutexattr_gettype
|
// TITLE: pthread_mutexattr_settype
|
||||||
// DESCRIPTION: The platform supports POSIX API pthread_mutexattr_gettype.
|
// DESCRIPTION: The platform supports POSIX API pthread_mutexattr_settype.
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
@ -17,8 +17,8 @@ void f()
|
|||||||
// this is never called, it just has to compile:
|
// this is never called, it just has to compile:
|
||||||
pthread_mutexattr_t attr;
|
pthread_mutexattr_t attr;
|
||||||
pthread_mutexattr_init(&attr);
|
pthread_mutexattr_init(&attr);
|
||||||
int type;
|
int type = 0;
|
||||||
pthread_mutexattr_gettype(&attr, &type);
|
pthread_mutexattr_settype(&attr, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
int test()
|
int test()
|
@ -17,7 +17,7 @@ struct t
|
|||||||
private:
|
private:
|
||||||
void foo(){ i = j; }
|
void foo(){ i = j; }
|
||||||
public:
|
public:
|
||||||
void bar(){ j = i; } // silences warning from GCC
|
void uncallable(); // silences warning from GCC
|
||||||
int i;
|
int i;
|
||||||
int j;
|
int j;
|
||||||
};
|
};
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
// Do not edit this file, it was generated automatically by
|
// Do not edit this file, it was generated automatically by
|
||||||
// ../tools/generate from boost_*.cxx on
|
// ../tools/generate from boost_*.cxx on
|
||||||
// Wed Oct 31 12:19:39 2001
|
// Tue Jan 29 08:44:30 EST 2002
|
||||||
|
|
||||||
#include <boost/config.hpp>
|
#include <boost/config.hpp>
|
||||||
#define BOOST_INCLUDE_MAIN
|
#define BOOST_INCLUDE_MAIN
|
||||||
@ -272,6 +272,11 @@ namespace boost_has_pthread_delay_np = empty_boost;
|
|||||||
#else
|
#else
|
||||||
namespace boost_has_pthread_mutexattr_settype = empty_boost;
|
namespace boost_has_pthread_mutexattr_settype = empty_boost;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||||
|
#include "boost_has_pthread_ma_st.cxx"
|
||||||
|
#else
|
||||||
|
namespace boost_has_pthread_mutexattr_settype = empty_boost;
|
||||||
|
#endif
|
||||||
#ifdef BOOST_HAS_PTHREAD_YIELD
|
#ifdef BOOST_HAS_PTHREAD_YIELD
|
||||||
#include "boost_has_pthread_yield.cxx"
|
#include "boost_has_pthread_yield.cxx"
|
||||||
#else
|
#else
|
||||||
@ -381,6 +386,7 @@ int test_main( int, char *[] )
|
|||||||
BOOST_TEST(0 == boost_has_pthreads::test());
|
BOOST_TEST(0 == boost_has_pthreads::test());
|
||||||
BOOST_TEST(0 == boost_has_pthread_yield::test());
|
BOOST_TEST(0 == boost_has_pthread_yield::test());
|
||||||
BOOST_TEST(0 == boost_has_pthread_mutexattr_settype::test());
|
BOOST_TEST(0 == boost_has_pthread_mutexattr_settype::test());
|
||||||
|
BOOST_TEST(0 == boost_has_pthread_mutexattr_settype::test());
|
||||||
BOOST_TEST(0 == boost_has_pthread_delay_np::test());
|
BOOST_TEST(0 == boost_has_pthread_delay_np::test());
|
||||||
BOOST_TEST(0 == boost_has_nl_types_h::test());
|
BOOST_TEST(0 == boost_has_nl_types_h::test());
|
||||||
BOOST_TEST(0 == boost_has_nanosleep::test());
|
BOOST_TEST(0 == boost_has_nanosleep::test());
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
// Test file for macro BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
// Test file for macro BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||||
// This file should not compile, if it does then
|
// This file should not compile, if it does then
|
||||||
// BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE may be defined.
|
// BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE may be defined.
|
||||||
// see boost_has_pthread_ma_gt.cxx for more details
|
// see boost_has_pthread_ma_st.cxx for more details
|
||||||
|
|
||||||
// Do not edit this file, it was generated automatically by
|
// Do not edit this file, it was generated automatically by
|
||||||
// ../tools/generate from boost_has_pthread_ma_gt.cxx on
|
// ../tools/generate from boost_has_pthread_ma_st.cxx on
|
||||||
// Thu Oct 11 12:24:39 2001
|
// Tue Jan 29 08:44:30 EST 2002
|
||||||
|
|
||||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||||
// the objective of this file:
|
// the objective of this file:
|
||||||
@ -24,7 +24,7 @@
|
|||||||
#include "test.hpp"
|
#include "test.hpp"
|
||||||
|
|
||||||
#ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
#ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||||
#include "boost_has_pthread_ma_gt.cxx"
|
#include "boost_has_pthread_ma_st.cxx"
|
||||||
#else
|
#else
|
||||||
#error "this file should not compile"
|
#error "this file should not compile"
|
||||||
#endif
|
#endif
|
@ -7,11 +7,11 @@
|
|||||||
// Test file for macro BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
// Test file for macro BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||||
// This file should compile, if it does not then
|
// This file should compile, if it does not then
|
||||||
// BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE should not be defined.
|
// BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE should not be defined.
|
||||||
// see boost_has_pthread_ma_gt.cxx for more details
|
// see boost_has_pthread_ma_st.cxx for more details
|
||||||
|
|
||||||
// Do not edit this file, it was generated automatically by
|
// Do not edit this file, it was generated automatically by
|
||||||
// ../tools/generate from boost_has_pthread_ma_gt.cxx on
|
// ../tools/generate from boost_has_pthread_ma_st.cxx on
|
||||||
// Thu Oct 11 12:24:39 2001
|
// Tue Jan 29 08:44:30 EST 2002
|
||||||
|
|
||||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||||
// the objective of this file:
|
// the objective of this file:
|
||||||
@ -24,7 +24,7 @@
|
|||||||
#include "test.hpp"
|
#include "test.hpp"
|
||||||
|
|
||||||
#ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
#ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||||
#include "boost_has_pthread_ma_gt.cxx"
|
#include "boost_has_pthread_ma_st.cxx"
|
||||||
#else
|
#else
|
||||||
namespace boost_has_pthread_mutexattr_settype = empty_boost;
|
namespace boost_has_pthread_mutexattr_settype = empty_boost;
|
||||||
#endif
|
#endif
|
@ -107,6 +107,8 @@ run libs/config/test/has_pthread_delay_np_pass.cpp
|
|||||||
link-fail libs/config/test/has_pthread_delay_np_fail.cpp
|
link-fail libs/config/test/has_pthread_delay_np_fail.cpp
|
||||||
run libs/config/test/has_pthread_ma_gt_pass.cpp
|
run libs/config/test/has_pthread_ma_gt_pass.cpp
|
||||||
link-fail libs/config/test/has_pthread_ma_gt_fail.cpp
|
link-fail libs/config/test/has_pthread_ma_gt_fail.cpp
|
||||||
|
run libs/config/test/has_pthread_ma_st_pass.cpp
|
||||||
|
link-fail libs/config/test/has_pthread_ma_st_fail.cpp
|
||||||
run libs/config/test/has_pthread_yield_pass.cpp
|
run libs/config/test/has_pthread_yield_pass.cpp
|
||||||
link-fail libs/config/test/has_pthread_yield_fail.cpp
|
link-fail libs/config/test/has_pthread_yield_fail.cpp
|
||||||
run libs/config/test/has_pthreads_pass.cpp
|
run libs/config/test/has_pthreads_pass.cpp
|
||||||
|
Reference in New Issue
Block a user