File tree Expand file tree Collapse file tree 4 files changed +17
-11
lines changed Expand file tree Collapse file tree 4 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -505,15 +505,10 @@ else()
505
505
set (TEST_COMPILE_FLAGS "-Wno-sign-compare" )
506
506
507
507
if (CMAKE_CXX_COMPILER_ID MATCHES "SunPro" )
508
-
509
- # TODO: Fix these warnings
510
-
511
508
add_compile_options (
512
- -errtags=yes -erroff=hidevf,wvarhidemem
509
+ -errtags=yes
513
510
)
514
-
515
511
else ()
516
-
517
512
add_compile_options (-Wextra )
518
513
519
514
endif ()
Original file line number Diff line number Diff line change 41
41
#include < bitset>
42
42
#include < list>
43
43
44
+ #if defined __SUNPRO_CC
45
+
46
+ // Disable warning of virtual methods being hidden
47
+ #pragma error_messages (off, hidevf)
48
+
49
+ #endif
44
50
45
51
/*
46
52
This file defines a hierarchy of classes which implement executable objects
@@ -2576,6 +2582,12 @@ class Op_table_remove
2576
2582
2577
2583
};
2578
2584
2585
+ #if defined __SUNPRO_CC
2586
+
2587
+ #pragma error_messages (default, hidevf)
2588
+
2589
+ #endif
2590
+
2579
2591
2580
2592
} // internal
2581
2593
} // mysqlx
Original file line number Diff line number Diff line change @@ -325,12 +325,12 @@ void Settings_impl::get_data_source(cdk::ds::Multi_source &src)
325
325
326
326
assert (Option_impl::SOCKET == it->first );
327
327
328
- string socket = it->second .get_string ();
328
+ string socket_path = it->second .get_string ();
329
329
++it;
330
330
331
331
check_prio (it, prio);
332
332
333
- src.add (cdk::ds::Unix_socket (socket ),
333
+ src.add (cdk::ds::Unix_socket (socket_path ),
334
334
(cdk::ds::Unix_socket::Options&)opts,
335
335
(unsigned short )prio);
336
336
Original file line number Diff line number Diff line change @@ -1802,7 +1802,7 @@ TEST_F(Sess, pool_ttl)
1802
1802
));
1803
1803
}
1804
1804
1805
- auto test_sessions = [&session_list,max_connections] (bool expect_errors = false )
1805
+ auto test_sessions = [&session_list,max_connections] (bool expect_errors)
1806
1806
{
1807
1807
int errors_found = 0 ;
1808
1808
while (session_list.size () > 0 )
@@ -1844,7 +1844,7 @@ TEST_F(Sess, pool_ttl)
1844
1844
}
1845
1845
};
1846
1846
1847
- test_sessions ();
1847
+ test_sessions (false );
1848
1848
1849
1849
// Now closing pool so that waiting threads get session without timeout
1850
1850
ClientSettings settings1 = settings;
@@ -1972,4 +1972,3 @@ TEST_F(Sess, pool_ttl)
1972
1972
}
1973
1973
1974
1974
}
1975
-
You can’t perform that action at this time.
0 commit comments