]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1071] static assert if sizeof(bool) is not 1
authorRazvan Becheriu <razvan@isc.org>
Thu, 23 Jan 2020 07:05:42 +0000 (09:05 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Fri, 21 Feb 2020 08:15:14 +0000 (09:15 +0100)
src/lib/mysql/mysql_constants.h

index ba0908907f9a733b1b17447ef230ec8542a2814d..76e9703ad723fd2722effd4b711838b6a892db70 100644 (file)
@@ -27,6 +27,9 @@ const my_bool MLM_FALSE = 0;
 const my_bool MLM_TRUE = 1;
 
 #else
+///@brief check for bool size
+static_assert(sizeof(bool) == 1, "unsupported bool size");
+
 /// @brief my_bool type in MySQL 8.x.
 typedef bool my_bool;