[Bf-blender-cvs] [9b32248894d] master: Cleanup: correct ATTR_NONNULL use

Campbell Barton noreply at git.blender.org
Thu Jan 25 00:11:10 CET 2018


Commit: 9b32248894d133c6437174e1470dfefa23a10b87
Author: Campbell Barton
Date:   Thu Jan 25 10:21:31 2018 +1100
Branches: master
https://developer.blender.org/rB9b32248894d133c6437174e1470dfefa23a10b87

Cleanup: correct ATTR_NONNULL use

===================================================================

M	source/blender/blenkernel/BKE_library.h

===================================================================

diff --git a/source/blender/blenkernel/BKE_library.h b/source/blender/blenkernel/BKE_library.h
index eb66d4edf0f..9e1bc2611fb 100644
--- a/source/blender/blenkernel/BKE_library.h
+++ b/source/blender/blenkernel/BKE_library.h
@@ -51,9 +51,9 @@ struct PointerRNA;
 struct PropertyRNA;
 
 size_t BKE_libblock_get_alloc_info(short type, const char **name);
-void *BKE_libblock_alloc_notest(short type);
-void *BKE_libblock_alloc(struct Main *bmain, short type, const char *name, const int flag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL();
-void  BKE_libblock_init_empty(struct ID *id);
+void *BKE_libblock_alloc_notest(short type) ATTR_WARN_UNUSED_RESULT;
+void *BKE_libblock_alloc(struct Main *bmain, short type, const char *name, const int flag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1);
+void  BKE_libblock_init_empty(struct ID *id) ATTR_NONNULL(1);
 
 /**
  * New ID creation/copying options.



More information about the Bf-blender-cvs mailing list