Remove -Wno-unused-parameter
Introduced UNUSED macro with cast to void in commoh.h for internal use. Used cast to void directly in those files which do not include common.h. Although this change doesn't fix semantic issues with unused function parameters, it does explicitly mark all those places, which might require attention in future.
This commit is contained in:
committed by
Dmitry Podgorny
parent
20c039fdb8
commit
198bdd77d0
@@ -35,57 +35,73 @@ void tls_shutdown(void)
|
||||
|
||||
tls_t *tls_new(xmpp_conn_t *conn)
|
||||
{
|
||||
UNUSED(conn);
|
||||
/* always fail */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void tls_free(tls_t *tls)
|
||||
{
|
||||
UNUSED(tls);
|
||||
return;
|
||||
}
|
||||
|
||||
int tls_set_credentials(tls_t *tls, const char *cafilename)
|
||||
{
|
||||
UNUSED(tls);
|
||||
UNUSED(cafilename);
|
||||
return -1;
|
||||
}
|
||||
|
||||
int tls_start(tls_t *tls)
|
||||
{
|
||||
UNUSED(tls);
|
||||
return -1;
|
||||
}
|
||||
|
||||
int tls_stop(tls_t *tls)
|
||||
{
|
||||
UNUSED(tls);
|
||||
return -1;
|
||||
}
|
||||
|
||||
int tls_error(tls_t *tls)
|
||||
{
|
||||
UNUSED(tls);
|
||||
/* todo: some kind of error polling/dump */
|
||||
return 0;
|
||||
}
|
||||
|
||||
int tls_pending(tls_t *tls)
|
||||
{
|
||||
UNUSED(tls);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int tls_read(tls_t *tls, void *const buff, const size_t len)
|
||||
{
|
||||
UNUSED(tls);
|
||||
UNUSED(buff);
|
||||
UNUSED(len);
|
||||
return -1;
|
||||
}
|
||||
|
||||
int tls_write(tls_t *tls, const void *const buff, const size_t len)
|
||||
{
|
||||
UNUSED(tls);
|
||||
UNUSED(buff);
|
||||
UNUSED(len);
|
||||
return -1;
|
||||
}
|
||||
|
||||
int tls_clear_pending_write(tls_t *tls)
|
||||
{
|
||||
UNUSED(tls);
|
||||
return -1;
|
||||
}
|
||||
|
||||
int tls_is_recoverable(int error)
|
||||
{
|
||||
UNUSED(error);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user