Skip to content

Commit 83fd8bf

Browse files
committed
silence all warnings
1 parent ebe87bc commit 83fd8bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/xtensor-python/pytensor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ namespace xt
331331
*/
332332
template <class T, std::size_t N, layout_type L>
333333
inline pytensor<T, N, L>::pytensor(const self_type& rhs)
334-
: base_type()
334+
: self_type()
335335
{
336336
init_tensor(rhs.shape(), rhs.strides());
337337
std::copy(rhs.storage().cbegin(), rhs.storage().cend(), this->storage().begin());

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ include(CheckCXXCompilerFlag)
2929
string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
3030

3131
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Intel")
32-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wunused-parameter -Wextra -Wreorder -Wconversion")
32+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wunused-parameter -Wextra -Wreorder -Wconversion -fvisibility=hidden")
3333
CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
3434

3535
if (HAS_CPP14_FLAG)

0 commit comments

Comments
 (0)