Fix warnings

svn path=/trunk/; revision=43046
This commit is contained in:
Anders Broman 2012-06-03 20:59:41 +00:00
parent bfb179ba46
commit d1c1455882
3 changed files with 7 additions and 7 deletions

View File

@ -90,7 +90,7 @@ any "error" symbols are shifted, if possible. */
stnode_value(TOKEN));
break;
case STTYPE_FIELD:
hfinfo = stnode_data(TOKEN);
hfinfo = (header_field_info *)stnode_data(TOKEN);
dfilter_fail("Syntax error near \"%s\".", hfinfo->abbrev);
break;
case STTYPE_FUNCTION:

View File

@ -691,7 +691,7 @@ check_relation_LHS_STRING(const char* relation_string,
THROW(TypeError);
}
s = stnode_data(st_arg1);
s = (char*)stnode_data(st_arg1);
fvalue = fvalue_from_string(ftype2, s, dfilter_fail);
if (!fvalue) {
THROW(TypeError);

View File

@ -53,7 +53,7 @@ test_new(gpointer junk)
static void
test_free(gpointer value)
{
test_t *test = value;
test_t *test = (test_t *)value;
assert_magic(test, TEST_MAGIC);
if (test->val1)
@ -96,7 +96,7 @@ sttype_test_set1(stnode_t *node, test_op_t op, stnode_t *val1)
{
test_t *test;
test = stnode_data(node);
test = (test_t*)stnode_data(node);
assert_magic(test, TEST_MAGIC);
g_assert(num_operands(op) == 1);
@ -109,7 +109,7 @@ sttype_test_set2(stnode_t *node, test_op_t op, stnode_t *val1, stnode_t *val2)
{
test_t *test;
test = stnode_data(node);
test = (test_t*)stnode_data(node);
assert_magic(test, TEST_MAGIC);
g_assert(num_operands(op) == 2);
@ -123,7 +123,7 @@ sttype_test_set2_args(stnode_t *node, stnode_t *val1, stnode_t *val2)
{
test_t *test;
test = stnode_data(node);
test = (test_t*)stnode_data(node);
assert_magic(test, TEST_MAGIC);
if (num_operands(test->op) == 1) {
@ -138,7 +138,7 @@ sttype_test_get(stnode_t *node, test_op_t *p_op, stnode_t **p_val1, stnode_t **p
{
test_t *test;
test = stnode_data(node);
test = (test_t*)stnode_data(node);
assert_magic(test, TEST_MAGIC);
*p_op = test->op;