From 763548f7d18459cf0b094174c5651037684021d7 Mon Sep 17 00:00:00 2001 From: lucas Date: Fri, 1 Oct 2010 12:18:04 +0000 Subject: [PATCH] eina: fix wrong EINA_ARG_NONNULL This fixes the following error: CC libeina_la-eina_error.lo CC libeina_la-eina_log.lo In file included from ../../src/include/eina_safety_checks.h:69, from eina_error.c:150: ../../src/include/eina_error.h:53: error: nonnull argument references non-pointer operand (argument 1, operand 1) make[3]: *** [libeina_la-eina_error.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from ../../src/include/eina_safety_checks.h:69, from eina_log.c:287: ../../src/include/eina_error.h:53: error: nonnull argument references non-pointer operand (argument 1, operand 1) make[3]: *** [libeina_la-eina_log.lo] Error 1 make[3]: Leaving directory `/data/projects/qi-bootmenu-system/build/temp-armv4tl/eina/src/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/data/projects/qi-bootmenu-system/build/temp-armv4tl/eina/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/data/projects/qi-bootmenu-system/build/temp-armv4tl/eina' make: *** [all] Error 2 Patch by: Marc Andre Tanner git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@52947 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/include/eina_error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/eina_error.h b/src/include/eina_error.h index 7b290de..8c74b66 100644 --- a/src/include/eina_error.h +++ b/src/include/eina_error.h @@ -50,7 +50,7 @@ EAPI extern Eina_Error EINA_ERROR_OUT_OF_MEMORY; EAPI Eina_Error eina_error_msg_register(const char *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT; EAPI Eina_Error eina_error_msg_static_register(const char *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT; EAPI Eina_Bool eina_error_msg_modify(Eina_Error error, - const char *msg) EINA_ARG_NONNULL(1, 2); + const char *msg) EINA_ARG_NONNULL(2); EAPI Eina_Error eina_error_get(void); EAPI void eina_error_set(Eina_Error err); EAPI const char * eina_error_msg_get(Eina_Error error) EINA_PURE; -- 2.7.4