summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorQball Cow <qball@gmpclient.org>2014-03-11 20:16:44 +0100
committerQball Cow <qball@gmpclient.org>2014-03-11 20:16:44 +0100
commitc268c10f8b8853249b4754738e5d5e36e5cf205a (patch)
tree61517ba91d6cd3909a79207b9d4bd56eba46e382 /include
parent5d706dc0dd3230a8d6d0d7af17634b3643de54ad (diff)
Fix warning from clang --analyze
Diffstat (limited to 'include')
-rw-r--r--include/simpleswitcher.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/simpleswitcher.h b/include/simpleswitcher.h
index 1947804b..74d4fe7d 100644
--- a/include/simpleswitcher.h
+++ b/include/simpleswitcher.h
@@ -47,7 +47,7 @@ MenuReturn menu( char **lines, char **input, char *prompt,
/**
* Allocator wrappers
*/
-void* allocate( unsigned long bytes );
+void* allocate( unsigned long bytes ) __attribute__((malloc));
void* allocate_clear( unsigned long bytes );
void* reallocate( void *ptr, unsigned long bytes );