Skip to content
Snippets Groups Projects
Commit 6393b1a5 authored by Claus-Justus Heine's avatar Claus-Justus Heine
Browse files

Fiddle a little bit with unused attribute.

parent bd9c59f7
Branches
Tags
No related merge requests found
......@@ -81,14 +81,18 @@ typedef bool _Bool;
# define __bool_true_false_are_defined 1
#endif
#if defined(__GNUC__)
#if HAS_ATTRIBUTE_UNUSED || defined(__GNUC__)
# define __ATTRIBUTE_UNUSED__ __attribute__((unused))
#else
# define __ATTRIBUTE_UNUSED__ /* nothing */
#endif
#if defined(__GNUC__)
# define __LIKELY__(arg) __builtin_expect(arg, true)
# define __UNLIKELY__(arg) __builtin_expect(arg, false)
#else
# define __LIKELY__(arg) (arg)
# define __UNLIKELY__(arg) (arg)
# define __UNUSED_ATTRIBUTE__ /* nothing */
#endif
#if !ALBERTA_DEBUG\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment