mark unused attributes

This commit is contained in:
John
2023-12-26 10:50:48 +01:00
parent 8fdab797ca
commit 8ac8e59383
2 changed files with 15 additions and 3 deletions
+7 -1
View File
@@ -28,6 +28,12 @@
#endif // HAVE_SSL
#include "lib/utils/log.h"
#if defined(__GNUC__)
#define MAYBE_UNUSED __attribute__((unused))
#else
#define MAYBE_UNUSED
#endif
namespace ebusd {
using std::string;
@@ -171,7 +177,7 @@ void sslInfoCallback(const SSL *ssl, int type, int val) {
(type & SSL_CB_ALERT) ? SSL_alert_desc_string_long(val) : "?");
}
int bioInfoCallback(BIO *bio, int state, int res) {
int bioInfoCallback(MAYBE_UNUSED BIO *bio, int state, int res) {
logDebug(lf_network,
"SSL BIO state %d res %d",
state,