Skip to content

Commit a30c371

Browse files
committed
Bug#28672824 Fix Solaris Warnings
1 parent cc970e1 commit a30c371

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -505,15 +505,10 @@ else()
505505
set(TEST_COMPILE_FLAGS "-Wno-sign-compare")
506506

507507
if(CMAKE_CXX_COMPILER_ID MATCHES "SunPro")
508-
509-
# TODO: Fix these warnings
510-
511508
add_compile_options(
512-
-errtags=yes -erroff=hidevf,wvarhidemem
509+
-errtags=yes
513510
)
514-
515511
else()
516-
517512
add_compile_options(-Wextra)
518513

519514
endif()

common/op_impl.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
#include <bitset>
4242
#include <list>
4343

44+
#if defined __SUNPRO_CC
45+
46+
//Disable warning of virtual methods being hidden
47+
#pragma error_messages (off, hidevf)
48+
49+
#endif
4450

4551
/*
4652
This file defines a hierarchy of classes which implement executable objects
@@ -2576,6 +2582,12 @@ class Op_table_remove
25762582

25772583
};
25782584

2585+
#if defined __SUNPRO_CC
2586+
2587+
#pragma error_messages (default, hidevf)
2588+
2589+
#endif
2590+
25792591

25802592
} // internal
25812593
} // mysqlx

common/session.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,12 @@ void Settings_impl::get_data_source(cdk::ds::Multi_source &src)
325325

326326
assert(Option_impl::SOCKET == it->first);
327327

328-
string socket = it->second.get_string();
328+
string socket_path = it->second.get_string();
329329
++it;
330330

331331
check_prio(it, prio);
332332

333-
src.add(cdk::ds::Unix_socket(socket),
333+
src.add(cdk::ds::Unix_socket(socket_path),
334334
(cdk::ds::Unix_socket::Options&)opts,
335335
(unsigned short)prio);
336336

devapi/tests/session-t.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,7 @@ TEST_F(Sess, pool_ttl)
18021802
));
18031803
}
18041804

1805-
auto test_sessions = [&session_list,max_connections] (bool expect_errors = false)
1805+
auto test_sessions = [&session_list,max_connections] (bool expect_errors)
18061806
{
18071807
int errors_found = 0;
18081808
while(session_list.size() > 0)
@@ -1844,7 +1844,7 @@ TEST_F(Sess, pool_ttl)
18441844
}
18451845
};
18461846

1847-
test_sessions();
1847+
test_sessions(false);
18481848

18491849
// Now closing pool so that waiting threads get session without timeout
18501850
ClientSettings settings1 = settings;
@@ -1972,4 +1972,3 @@ TEST_F(Sess, pool_ttl)
19721972
}
19731973

19741974
}
1975-

0 commit comments

Comments
 (0)