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
@@ -43,6 +43,9 @@ static void create_destroy(void)
|
||||
int cbtest_got_start = 0;
|
||||
void cbtest_handle_start(char *name, char **attrs, void *userdata)
|
||||
{
|
||||
(void)attrs;
|
||||
(void)userdata;
|
||||
|
||||
if (strcmp(name, "stream") == 0)
|
||||
cbtest_got_start = 1;
|
||||
}
|
||||
@@ -50,6 +53,8 @@ void cbtest_handle_start(char *name, char **attrs, void *userdata)
|
||||
int cbtest_got_end = 0;
|
||||
void cbtest_handle_end(char *name, void *userdata)
|
||||
{
|
||||
(void)userdata;
|
||||
|
||||
if (strcmp(name, "stream") == 0)
|
||||
cbtest_got_end = 1;
|
||||
}
|
||||
@@ -57,6 +62,8 @@ void cbtest_handle_end(char *name, void *userdata)
|
||||
int cbtest_got_stanza = 0;
|
||||
void cbtest_handle_stanza(xmpp_stanza_t *stanza, void *userdata)
|
||||
{
|
||||
(void)userdata;
|
||||
|
||||
if (strcmp(xmpp_stanza_get_name(stanza), "message") == 0)
|
||||
cbtest_got_stanza = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user