Fix two warnings for semcheck.c
semcheck.c:986:24: warning: cast from function call of type 'sttype_id_t' to non-matching type 'int' [-Wbad-function-cast] semcheck.c:986:5: warning: format '%p' expects argument of type 'void *', but argument 3 has type 'struct stnode_t *' [-Wformat=] Change-Id: I83031251c83f6597eb7c31f35e02c5a95bd2dabb Reviewed-on: https://code.wireshark.org/review/13930 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: João Valverde <j@v6e.pt>
This commit is contained in:
parent
5dbc727ae9
commit
7f520c352d
|
@ -982,8 +982,12 @@ check_relation_LHS_RANGE(dfwork_t *dfw, const char *relation_string,
|
|||
check_function(dfw, entity1);
|
||||
|
||||
} else {
|
||||
dfilter_fail(dfw, "Range is not supported, details: " G_STRLOC " entity: %p of type %d",
|
||||
entity1, entity1 ? (int) stnode_type_id(entity1) : -1);
|
||||
if (entity1 == NULL) {
|
||||
dfilter_fail(dfw, "Range is not supported, details: " G_STRLOC " entity: NULL");
|
||||
} else {
|
||||
dfilter_fail(dfw, "Range is not supported, details: " G_STRLOC " entity: %p of type %d",
|
||||
(void *)entity1, stnode_type_id(entity1));
|
||||
}
|
||||
THROW(TypeError);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue