mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject [1/7] incubator-mynewt-larva git commit: Fix __assert_func() prototype. Line number is unsigned int.
Date Wed, 25 Nov 2015 23:56:26 GMT
Repository: incubator-mynewt-larva
Updated Branches:
  refs/heads/master 1d1aea351 -> b544c2a12


Fix __assert_func() prototype. Line number is unsigned int.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/4fb0b661
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/4fb0b661
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/4fb0b661

Branch: refs/heads/master
Commit: 4fb0b66163e8dfe55194808993defae28513db8c
Parents: 1d1aea3
Author: Marko Kiiskila <marko@runtime.io>
Authored: Wed Nov 25 15:43:26 2015 -0800
Committer: Marko Kiiskila <marko@runtime.io>
Committed: Wed Nov 25 15:43:26 2015 -0800

----------------------------------------------------------------------
 libs/baselibc/include/assert.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/4fb0b661/libs/baselibc/include/assert.h
----------------------------------------------------------------------
diff --git a/libs/baselibc/include/assert.h b/libs/baselibc/include/assert.h
index 6177190..273058f 100644
--- a/libs/baselibc/include/assert.h
+++ b/libs/baselibc/include/assert.h
@@ -16,8 +16,10 @@
 #define assert(x) ((void)(0))
 
 #else
+#include <stddef.h>
 
-extern void __assert_func(const char *, unsigned int, const char *, const char *);
+extern void __assert_func(const char *, int, const char *, const char *)
+    __attribute((noreturn));
 
 #define assert(x) ((x) ? (void)0 : __assert_func(__FILE__, __LINE__, NULL, NULL))
 


Mime
View raw message