[ovs-discuss] what's wrong with these codes ?

yewgang batmanustc at gmail.com
Thu Mar 5 13:23:43 UTC 2015


Dear all,

what's wrong with these codes ?  I really don't know...
my codes is like this :

static void
test_print_tables(struct ovsdb_idl *idl)
{
    /* add for test */
    struct shash_node *node;

    SHASH_FOR_EACH(node, &idl->table_by_name) { // Report warning here
        ......
    }

}

but the compiler report warning :

vswitchd/inventory.c: In function 'test_print_tables':
vswitchd/inventory.c:219:5: error: dereferencing pointer to incomplete type
vswitchd/inventory.c:219:5: error: left-hand operand of comma expression
has no effect [-Werror=unused-value]
vswitchd/inventory.c:219:5: error: dereferencing pointer to incomplete type
vswitchd/inventory.c:219:5: error: left-hand operand of comma expression
has no effect [-Werror=unused-value]
cc1: all warnings being treated as errors
make[2]: *** [vswitchd/inventory.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150305/e907811c/attachment-0002.html>


More information about the discuss mailing list