Commit a4f68912 authored by Lev Walkin's avatar Lev Walkin

less misleading name

parent 16555a1e
......@@ -788,7 +788,7 @@ INTEGER_encode_uper(asn_TYPE_descriptor_t *td,
/*
* This function is only to get rid of Undefined Behavior Sanitizer warning.
*/
static intmax_t CC_NO_SANITIZE("shift-base")
static intmax_t CC_ATTR_NO_SANITIZE("shift-base")
asn__safe_integer_convert_helper(const uint8_t *b, const uint8_t *end) {
intmax_t value;
......
......@@ -12,7 +12,7 @@
/*
* This function is only to get rid of Undefined Behavior Sanitizer warning.
*/
static intmax_t CC_NO_SANITIZE("shift-base")
static intmax_t CC_ATTR_NO_SANITIZE("shift-base")
asn__safe_nativeenumerated_convert_helper(const uint8_t *b,
const uint8_t *end) {
intmax_t value;
......
......@@ -109,9 +109,11 @@ typedef unsigned int uint32_t;
#else
#define CC_ATTRIBUTE(attr)
#endif
#define CC_PRINTFLIKE(fmt, var) CC_ATTRIBUTE(format(printf, fmt, var))
#define CC_NOTUSED CC_ATTRIBUTE(unused)
#define CC_NO_SANITIZE(what) CC_ATTRIBUTE(no_sanitize(what))
#define CC_PRINTFLIKE(fmt, var) CC_ATTRIBUTE(format(printf, fmt, var))
#define CC_NOTUSED CC_ATTRIBUTE(unused)
#ifndef CC_ATTR_NO_SANITIZE
#define CC_ATTR_NO_SANITIZE(what) CC_ATTRIBUTE(no_sanitize(what))
#endif
/* Figure out if thread safety is requested */
#if !defined(ASN_THREAD_SAFE) && (defined(THREAD_SAFE) || defined(_REENTRANT))
......
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