summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-10 11:35:12 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-10 11:35:38 +0100
commit8eaf136de989bfaa2780895ce91ae42da631a734 (patch)
treebcd6b546f1974c33646bc616211e754665f599d2
parentFix format warnings due to ino_t changes (diff)
downloadrtems-8eaf136de989bfaa2780895ce91ae42da631a734.tar.bz2
memalign: Add missing attributes to fix warning
Update #3666.
-rw-r--r--cpukit/libcsupport/src/alignedalloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/alignedalloc.c b/cpukit/libcsupport/src/alignedalloc.c
index 0ecf7393d8..57fff482f1 100644
--- a/cpukit/libcsupport/src/alignedalloc.c
+++ b/cpukit/libcsupport/src/alignedalloc.c
@@ -38,4 +38,6 @@ void *aligned_alloc( size_t alignment, size_t size )
return rtems_heap_allocate_aligned_with_boundary( size, alignment, 0 );
}
-void *memalign( size_t, size_t ) RTEMS_ALIAS( aligned_alloc );
+void *memalign( size_t, size_t ) RTEMS_ALIAS( aligned_alloc ) __malloc_like
+ __alloc_align(1) __alloc_size(2) __result_use_check
+ __attribute__((__nothrow__));