[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48728] trunk/blender/intern/guardedalloc/ MEM_guardedalloc.h: correct use of __attribute__((nonnull))

Campbell Barton ideasman42 at gmail.com
Sun Jul 8 17:11:14 CEST 2012


Revision: 48728
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48728
Author:   campbellbarton
Date:     2012-07-08 15:11:13 +0000 (Sun, 08 Jul 2012)
Log Message:
-----------
correct use of __attribute__((nonnull))

Modified Paths:
--------------
    trunk/blender/intern/guardedalloc/MEM_guardedalloc.h

Modified: trunk/blender/intern/guardedalloc/MEM_guardedalloc.h
===================================================================
--- trunk/blender/intern/guardedalloc/MEM_guardedalloc.h	2012-07-08 14:10:29 UTC (rev 48727)
+++ trunk/blender/intern/guardedalloc/MEM_guardedalloc.h	2012-07-08 15:11:13 UTC (rev 48728)
@@ -73,18 +73,13 @@
 	size_t MEM_allocN_len(void *vmemh)
 #ifdef __GNUC__
 	__attribute__((warn_unused_result))
-	__attribute__((nonnull))
 #endif
 	;
 
 	/**
 	 * Release memory previously allocatred by this module. 
 	 */
-	short MEM_freeN(void *vmemh)
-#ifdef __GNUC__
-	__attribute__((nonnull))
-#endif
-	;
+	short MEM_freeN(void *vmemh);
 
 	/**
 	 * Return zero if memory is not in allocated list
@@ -97,7 +92,6 @@
 	void *MEM_dupallocN(void *vmemh)
 #ifdef __GNUC__
 	__attribute__((warn_unused_result))
-	__attribute__((nonnull))
 #endif
 	;
 
@@ -109,7 +103,6 @@
 	void *MEM_reallocN(void *vmemh, size_t len)
 #ifdef __GNUC__
 	__attribute__((warn_unused_result))
-	__attribute__((nonnull))
 	__attribute__((alloc_size(2)))
 #endif
 	;




More information about the Bf-blender-cvs mailing list