Commit 1594037c authored by Nils Goroll's avatar Nils Goroll

Add a v_* attribute for deprecated functions

This works with gcc 6.3.0 and clang 3.8.1-24

The test for __GNUC__ is deliberately simple and might not catch all
compilers which would potentially support deprecation marks. While more
specifics could be added, the aim is to raise awareness with developers
and we consider it quite unlikely that anyone does not compile with one
of the main stream compilers at all.
parent 0e125f51
......@@ -81,6 +81,12 @@
#define v_noreturn_ __attribute__((__noreturn__))
#ifdef __GNUC__
# define v_deprecated_ __attribute__((deprecated))
#else
# define v_deprecated_
#endif
/*********************************************************************
* Pointer alignment magic
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment