Remove warning messages (mostly due to UNUSED params).

This commit is contained in:
Yiannis Yiakoumis committed 2009-12-08 15:53:01 -08:00
1 parent 4a53e14a2d
commit a906134053
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -851,7 +851,7 @@ netdev_recv(struct netdev *netdev, struct ofpbuf *buffer)
{
ssize_t n_bytes;
struct sockaddr_ll sll;
int sll_len;
socklen_t sll_len;
assert(buffer->size == 0);
assert(ofpbuf_tailroom(buffer) >= ETH_TOTAL_MIN);
+2 -2
View File
@@ -1309,7 +1309,7 @@ ofp_echo(struct ds *string, const void *oh, size_t len, int verbosity)
}
static void
ofp_vendor(struct ds *string, const void *oh, size_t len, int verbosity)
ofp_vendor(struct ds *string UNUSED, const void *oh, size_t len UNUSED, int verbosity UNUSED)
{
const struct ofp_vendor_header *vh = oh;
@@ -1344,7 +1344,7 @@ show_queue_props(struct ds *string, const struct ofp_packet_queue *queue_desc)
static void
show_queue_get_config_reply(struct ds *string, const void *oh,
size_t len, int verbosity)
size_t len UNUSED, int verbosity UNUSED)
{
const struct ofp_queue_get_config_reply *reply;
const struct ofp_packet_queue *queue_desc;
+3 -3
View File
@@ -57,7 +57,7 @@ validate_output(struct datapath *dp UNUSED, const struct sw_flow_key *key,
}
static uint16_t
validate_queue(struct datapath *dp UNUSED, const struct sw_flow_key *key,
validate_queue(struct datapath *dp UNUSED, const struct sw_flow_key *key UNUSED,
const struct ofp_action_header *ah)
{
struct ofp_action_enqueue *ea = (struct ofp_action_enqueue *)ah;
@@ -372,7 +372,7 @@ validate_ofpat(struct datapath *dp, const struct sw_flow_key *key,
/* Validate vendor-defined actions. Either returns ACT_VALIDATION_OK
* or an OFPET_BAD_ACTION error code. */
static uint16_t
validate_vendor(struct datapath *dp, const struct sw_flow_key *key,
validate_vendor(struct datapath *dp UNUSED, const struct sw_flow_key *key UNUSED,
const struct ofp_action_header *ah, uint16_t len)
{
struct ofp_action_vendor_header *avh;
@@ -454,7 +454,7 @@ execute_ofpat(struct ofpbuf *buffer, struct sw_flow_key *key,
/* Execute a vendor-defined action against 'buffer'. */
static void
execute_vendor(struct ofpbuf *buffer, const struct sw_flow_key *key,
execute_vendor(struct ofpbuf *buffer UNUSED, const struct sw_flow_key *key UNUSED,
const struct ofp_action_header *ah)
{
struct ofp_action_vendor_header *avh