Skip to content

Commit c53d4ad

Browse files
committed
Remove warning
1 parent 01e6f3c commit c53d4ad

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

include/utxx/robust_mutex.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ namespace utxx {
7171
pthread_mutexattr_t* mutex_attr = a_attr ? a_attr : &attr;
7272
if (pthread_mutexattr_setpshared(mutex_attr, PTHREAD_PROCESS_SHARED) < 0)
7373
UTXX_THROW_IO_ERROR(errno);
74-
if (pthread_mutexattr_setrobust_np(mutex_attr, PTHREAD_MUTEX_ROBUST_NP) < 0)
74+
if (pthread_mutexattr_setrobust(mutex_attr, PTHREAD_MUTEX_ROBUST_NP) < 0)
7575
UTXX_THROW_IO_ERROR(errno);
7676
if (pthread_mutexattr_setprotocol(mutex_attr, PTHREAD_PRIO_INHERIT) < 0)
7777
UTXX_THROW_IO_ERROR(errno);
@@ -126,7 +126,7 @@ namespace utxx {
126126

127127
int make_consistent() {
128128
assert(m);
129-
return pthread_mutex_consistent_np(m);
129+
return pthread_mutex_consistent(m);
130130
}
131131

132132
void destroy() {

include/utxx/variant_tree_parser.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
3434

3535
#include <utxx/detail/variant_tree_parser_impl.hpp>
3636
#include <utxx/error.hpp>
37+
#include <filesystem>
3738

3839
namespace utxx {
3940

@@ -139,7 +140,7 @@ namespace utxx {
139140
const std::locale & a_loc = std::locale(),
140141
config_format a_fmt = FORMAT_UNDEFINED
141142
) {
142-
std::basic_string<Ch> ext = boost::filesystem::extension(a_filename);
143+
std::basic_string<Ch> ext = std::filesystem::path(a_filename).extension();
143144

144145
if (a_fmt == FORMAT_UNDEFINED) {
145146
if (ext == ".config" || ext == ".conf" || ext == ".cfg" || ext == ".scon")

0 commit comments

Comments
 (0)