From 5e643f2973fae166bf4ff2855a77d14fd1f7e5da Mon Sep 17 00:00:00 2001 From: Ebersold Date: Wed, 29 Dec 2021 10:14:23 +0100 Subject: [PATCH] Fixed c++11 expection warning and Cmake configuration --- CMakeLists.txt | 2 ++ adt/asn1_node_classdef.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index afa8c93..9d9d0b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,9 @@ SUBDIRS(rtasn1 pkix cstav1 ledger csta gsm h323 megaco h248) ENDIF(NOT CMAKE_CROSSCOMPILING) INCLUDE(${rules_SOURCE_DIR}/flex.cmake) +# Overwrite default cached value -R. +SET(LEXER_OPT "" CACHE STRING "Lexer options for asn1" FORCE) IF(NOT WIN32) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__FILENAME__='\"$(subst ${CMAKE_CURRENT_SOURCE_DIR}/,,$<)\"'") ENDIF(NOT WIN32) diff --git a/adt/asn1_node_classdef.h b/adt/asn1_node_classdef.h index 0106416..2c9c791 100644 --- a/adt/asn1_node_classdef.h +++ b/adt/asn1_node_classdef.h @@ -97,7 +97,7 @@ class state_pool { //! smaller or equal (<=) to the chunk_size. //! \return A raw pointer to the begining of the reserved //! memory space. - void* reserve(size_t nbytes) throw(std::logic_error) { + void* reserve(size_t nbytes) { // Make sure that a Chunk can really // serve a request of this size. -- 2.30.2