Skip to content

Commit

Permalink
lib/hx509: conditionally define __attribute(X) in cert.c
Browse files Browse the repository at this point in the history
At the moment the noreturn attribute on _hx509_abort() is unconditionally
ignored due to an unconditional "#undef __attribute / #define __attribute__(X)"
pair that was introduced as part of a 3be06f1
("Provide __attribute__ for _hx509_abort.")

Change-Id: I1e4d24d2dbefdae38cf41a5507ed417aa09cf9b8
  • Loading branch information
jaltman committed Jan 2, 2019
1 parent e757fff commit ef038c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/hx509/cert.c
Expand Up @@ -3398,8 +3398,9 @@ hx509_cert_binary(hx509_context context, hx509_cert c, heim_octet_string *os)
* Last to avoid lost __attribute__s due to #undef.
*/

#undef __attribute__
#ifndef HAVE___ATTRIBUTE__
#define __attribute__(X)
#endif

HX509_LIB_NORETURN_FUNCTION void HX509_LIB_CALL
_hx509_abort(const char *fmt, ...)
Expand Down

0 comments on commit ef038c6

Please sign in to comment.