From 69f6730df3d18216126283864246eaf538bdf91d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 18 Oct 2023 20:44:11 -0600 Subject: Remove gdb_static_assert C++17 makes the second parameter to static_assert optional, so we can remove gdb_static_assert now. --- gdb/defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/defs.h') diff --git a/gdb/defs.h b/gdb/defs.h index e6dd93e..bcce4f4 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -229,7 +229,7 @@ enum language /* The number of bits needed to represent all languages, with enough padding to allow for reasonable growth. */ #define LANGUAGE_BITS 5 -gdb_static_assert (nr_languages <= (1 << LANGUAGE_BITS)); +static_assert (nr_languages <= (1 << LANGUAGE_BITS)); /* The number of bytes needed to represent all languages. */ #define LANGUAGE_BYTES ((LANGUAGE_BITS + HOST_CHAR_BIT - 1) / HOST_CHAR_BIT) -- cgit v1.1