]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3616] Fix UB warning about exceeding enum value
authorAndrei Pavel <andrei@isc.org>
Fri, 25 Oct 2024 08:36:34 +0000 (11:36 +0300)
committerAndrei Pavel <andrei@isc.org>
Fri, 25 Oct 2024 10:46:57 +0000 (13:46 +0300)
src/lib/dhcp/option4_client_fqdn.h
src/lib/dhcp/option6_client_fqdn.h

index c34d6b78c6f74673ed4958f2060f7a3cb9ab57de..07dacd6d2151e52edb45b0477c687e3307109917 100644 (file)
@@ -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
     };
index 7abe704e999be1aeb3b5f87676426b7bb2289202..f51e18584d1045e2ccb061578ed8acc4c80d6b71 100644 (file)
@@ -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
     };