summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-10 10:35:12 (UTC)
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-10 10:35:38 (UTC)
commit8eaf136de989bfaa2780895ce91ae42da631a734 (patch)
treebcd6b546f1974c33646bc616211e754665f599d2
parent7bde91bd5fd20e2c0c91193728c793e0675bdc03 (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 0ecf739..57fff48 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__));