From: Andrei Pavel Date: Fri, 25 Oct 2024 08:36:34 +0000 (+0300) Subject: [#3616] Fix UB warning about exceeding enum value X-Git-Tag: Kea-2.7.4~24 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=efec9a650736fe0817875276060718a0ab6bc179;p=thirdparty%2Fkea.git [#3616] Fix UB warning about exceeding enum value --- diff --git a/src/lib/dhcp/option4_client_fqdn.h b/src/lib/dhcp/option4_client_fqdn.h index c34d6b78c6..07dacd6d21 100644 --- a/src/lib/dhcp/option4_client_fqdn.h +++ b/src/lib/dhcp/option4_client_fqdn.h @@ -1,4 +1,4 @@ -// Copyright (C) 2013-2022 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -145,7 +145,7 @@ public: /// @brief Type of the domain-name: partial or full. - enum DomainNameType { + enum DomainNameType : int { PARTIAL, FULL }; diff --git a/src/lib/dhcp/option6_client_fqdn.h b/src/lib/dhcp/option6_client_fqdn.h index 7abe704e99..f51e18584d 100644 --- a/src/lib/dhcp/option6_client_fqdn.h +++ b/src/lib/dhcp/option6_client_fqdn.h @@ -1,4 +1,4 @@ -// Copyright (C) 2013-2022 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2013-2024 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -102,7 +102,7 @@ public: static const uint16_t FLAG_FIELD_LEN = 1; /// @brief Type of the domain-name: partial or full. - enum DomainNameType { + enum DomainNameType : int { PARTIAL, FULL };