Fix for Centos6/7 compilation issues

This commit is contained in:
Alex
2024-03-08 14:27:36 +02:00
parent 1f30136e21
commit f80b662f77
3 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ void ASTNodeList::removeLast()
void ASTNodeList::removeFirst()
{
m_nodes.erase(m_nodes.cbegin());
m_nodes.erase(m_nodes.begin());
}

View File

@@ -34,7 +34,7 @@ static bool printClassDocstring = true;
// shortcut for all top/pop calls
static PycRef<ASTNode> StackPopTop(FastStack& stack)
{
const auto node{ stack.top() };
const auto node(stack.top());
stack.pop();
return node;
}

View File

@@ -17,7 +17,7 @@ if (ENABLE_STACK_DEBUG)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wshadow -Werror ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror ${CMAKE_CXX_FLAGS}")
elseif(MSVC)
set(CMAKE_CXX_FLAGS "/WX ${CMAKE_CXX_FLAGS}")
add_definitions(-D_CRT_SECURE_NO_WARNINGS)