gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: BUILD: Remove static_assert check


From: gnunet
Subject: [gnunet] branch master updated: BUILD: Remove static_assert check
Date: Sun, 04 Dec 2022 14:01:29 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 3f0d91045 BUILD: Remove static_assert check
3f0d91045 is described below

commit 3f0d91045d29435feef723f09f9ff75c80296d3d
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sun Dec 4 22:01:23 2022 +0900

    BUILD: Remove static_assert check
---
 configure.ac                | 10 ----------
 gnunet_private_config.h.in  |  3 ---
 src/include/gnunet_common.h |  2 +-
 3 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/configure.ac b/configure.ac
index 04c539bf3..81d678ecd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -597,16 +597,6 @@ gcry_md_close (mac);]])],
      [AC_MSG_RESULT([cross compiling, test skipped])])
    AC_LANG_POP([C])])
 
-AC_MSG_CHECKING([for static assertion support])
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
-                     [[_Static_assert(sizeof(int) >= 4, "not big enough");]])],
-                  [AC_MSG_RESULT([yes])
-                   AC_DEFINE([HAVE_STATIC_ASSERT], [1],
-                             [Define to 1 if static assert is supported])],
-                  [AC_MSG_RESULT([no])
-                   AC_DEFINE([HAVE_STATIC_ASSERT], [0],
-                             [Define to 1 if static assert is supported])])
-
 dnl Helper function to shorten the amount of repeated code
 dnl It will create a --with-<lib> option for configure.
 dnl
diff --git a/gnunet_private_config.h.in b/gnunet_private_config.h.in
index a92acfbdf..fb18dae28 100644
--- a/gnunet_private_config.h.in
+++ b/gnunet_private_config.h.in
@@ -409,9 +409,6 @@
 /* Define to 1 if you have the `statfs' function. */
 #undef HAVE_STATFS
 
-/* Define to 1 if static assert is supported */
-#undef HAVE_STATIC_ASSERT
-
 /* Define to 1 if you have the `statvfs' function. */
 #undef HAVE_STATVFS
 
diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h
index 375ff1adc..0c3300125 100644
--- a/src/include/gnunet_common.h
+++ b/src/include/gnunet_common.h
@@ -991,7 +991,7 @@ GNUNET_error_type_to_string (enum GNUNET_ErrorType kind);
   } while (0)
 
 
-#if HAVE_STATIC_ASSERT
+#ifdef _Static_assert
 /**
  * Assertion to be checked (if supported by C compiler) at
  * compile time, otherwise checked at runtime and resulting

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]