summaryrefslogtreecommitdiff
path: root/src/lib/libssl/hidden
diff options
context:
space:
mode:
authortb <>2023-02-16 08:38:17 +0000
committertb <>2023-02-16 08:38:17 +0000
commitb1fbdd21532891fac5b0f128e57331894bd69d84 (patch)
tree689defafde66dbfa38a7854af566bd9a05f191b7 /src/lib/libssl/hidden
parentee0f647faa09f91cb79b628dcb818adaa381af90 (diff)
downloadopenbsd-b1fbdd21532891fac5b0f128e57331894bd69d84.tar.gz
openbsd-b1fbdd21532891fac5b0f128e57331894bd69d84.tar.bz2
openbsd-b1fbdd21532891fac5b0f128e57331894bd69d84.zip
libressl *_namespace.h: adjust *_ALIAS() to require a semicolon
LCRYPTO_ALIAS() and LSSL_ALIAS() contained a trailing semicolon. This does not conform to style(9), breaks editors and ctags and (most importantly) my workflow. Fix this by neutering them with asm("") so that -Wpedantic doesn't complain. There's precedent in libc's namespace.h fix suggested by & ok jsing
Diffstat (limited to 'src/lib/libssl/hidden')
-rw-r--r--src/lib/libssl/hidden/ssl_namespace.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/hidden/ssl_namespace.h b/src/lib/libssl/hidden/ssl_namespace.h
index 803f3e66be..7a941a0e10 100644
--- a/src/lib/libssl/hidden/ssl_namespace.h
+++ b/src/lib/libssl/hidden/ssl_namespace.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_namespace.h,v 1.1 2022/11/11 11:25:18 beck Exp $ */ 1/* $OpenBSD: ssl_namespace.h,v 1.2 2023/02/16 08:38:17 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2016 Philip Guenther <guenther@openbsd.org> 3 * Copyright (c) 2016 Philip Guenther <guenther@openbsd.org>
4 * 4 *
@@ -27,11 +27,11 @@
27#define LSSL_UNUSED(x) typeof(x) x __attribute__((deprecated)) 27#define LSSL_UNUSED(x) typeof(x) x __attribute__((deprecated))
28#define LSSL_USED(x) __attribute__((visibility("hidden"))) \ 28#define LSSL_USED(x) __attribute__((visibility("hidden"))) \
29 typeof(x) x asm("_lssl_"#x) 29 typeof(x) x asm("_lssl_"#x)
30#define LSSL_ALIAS(x) asm(".global "#x"; "#x" = _lssl_"#x); 30#define LSSL_ALIAS(x) asm(".global "#x"; "#x" = _lssl_"#x)
31#else 31#else
32#define LSSL_UNUSED(x) 32#define LSSL_UNUSED(x)
33#define LSSL_USED(x) 33#define LSSL_USED(x)
34#define LSSL_ALIAS(x) 34#define LSSL_ALIAS(x) asm("")
35#endif 35#endif
36 36
37#endif /* _LIBSSL_SSL_NAMESPACE_H_ */ 37#endif /* _LIBSSL_SSL_NAMESPACE_H_ */