poke-devel
[Top][All Lists]
Advanced

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

[PATCH] libpoke: Remove useless function attribute `sentinel`


From: Mohammad-Reza Nabipoor
Subject: [PATCH] libpoke: Remove useless function attribute `sentinel`
Date: Sun, 29 Nov 2020 05:18:29 +0330

2020-11-29  Mohammad-Reza Nabipoor  <m.nabipoor@yahoo.com>

        * libpoke/libpoke.h (pk_call): Remove `__attribute__ ((sentinel))`.
        `sentinel` expects `NULL` but the API uses `PK_NULL`.
---
 ChangeLog         | 5 +++++
 libpoke/libpoke.h | 3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bb1877ab..341ee267 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-11-29  Mohammad-Reza Nabipoor  <m.nabipoor@yahoo.com>
+
+       * libpoke/libpoke.h (pk_call): Remove `__attribute__ ((sentinel))`.
+       `sentinel` expects `NULL` but the API uses `PK_NULL`.
+
 2020-11-28  Jose E. Marchesi  <jemarch@gnu.org>
 
        * libpoke/pkl-gen.h (struct pkl_gen_payload): New field
diff --git a/libpoke/libpoke.h b/libpoke/libpoke.h
index a49f9646..c4454bcf 100644
--- a/libpoke/libpoke.h
+++ b/libpoke/libpoke.h
@@ -378,8 +378,7 @@ int pk_defvar (pk_compiler pkc, const char *varname, pk_val 
val) LIBPOKE_API;
    execution of the function results in an unhandled exception.
    Return PK_OK otherwise.  */
 
-int pk_call (pk_compiler pkc, pk_val cls, pk_val *ret, ...)
-  __attribute__ ((sentinel)) LIBPOKE_API;
+int pk_call (pk_compiler pkc, pk_val cls, pk_val *ret, ...) LIBPOKE_API;
 
 /* Get and set properties of the incremental compiler.  */
 
-- 
2.29.2



reply via email to

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