2016-08-02 09:43:29 -04:00
|
|
|
#ifndef OSRM_ATTRIBUTES_HPP_
|
|
|
|
#define OSRM_ATTRIBUTES_HPP_
|
|
|
|
|
|
|
|
// OSRM_ATTR_WARN_UNUSED - caller has to use function's return value
|
|
|
|
// https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
|
|
|
|
|
|
|
|
#if defined(__GNUC__) && (__GNUC__ >= 4)
|
2016-07-22 03:08:40 -04:00
|
|
|
#define OSRM_ATTR_WARN_UNUSED __attribute__((warn_unused_result))
|
2016-08-02 09:43:29 -04:00
|
|
|
#else
|
2016-07-22 03:08:40 -04:00
|
|
|
#define OSRM_ATTR_WARN_UNUSED
|
2016-08-02 09:43:29 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|