Quellcode durchsuchen

stdlib: use shorhand wur for realloc prototype

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer vor 12 Jahren
Ursprung
Commit
20e4af5469
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      include/stdlib.h

+ 1 - 1
include/stdlib.h

@@ -503,7 +503,7 @@ __BEGIN_NAMESPACE_STD
    the same pointer that was passed to it, aliasing needs to be allowed
    the same pointer that was passed to it, aliasing needs to be allowed
    between objects pointed by the old and new pointers.  */
    between objects pointed by the old and new pointers.  */
 extern void *realloc (void *__ptr, size_t __size)
 extern void *realloc (void *__ptr, size_t __size)
-     __THROW __attribute_warn_unused_result__;
+     __THROW __wur;
 /* Free a block allocated by `malloc', `realloc' or `calloc'.  */
 /* Free a block allocated by `malloc', `realloc' or `calloc'.  */
 extern void free (void *__ptr) __THROW;
 extern void free (void *__ptr) __THROW;
 __END_NAMESPACE_STD
 __END_NAMESPACE_STD