From: Ebersold Date: Wed, 29 Dec 2021 09:14:23 +0000 (+0100) Subject: Fixed c++11 expection warning and Cmake configuration X-Git-Url: https://git.ebersold.fr/?a=commitdiff_plain;h=5e643f2973fae166bf4ff2855a77d14fd1f7e5da;p=parser%2Fasn1.git Fixed c++11 expection warning and Cmake configuration --- 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.