summaryrefslogtreecommitdiff
path: root/trafgen_parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r--trafgen_parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y
index 8b8f3e6..1112f8a 100644
--- a/trafgen_parser.y
+++ b/trafgen_parser.y
@@ -153,7 +153,7 @@ static void set_byte(uint8_t val)
static void set_multi_byte(uint8_t *s, size_t len)
{
- int i;
+ size_t i;
for (i = 0; i < len; ++i)
set_byte(s[i]);
@@ -187,7 +187,7 @@ static void __set_csum16_dynamic(size_t from, size_t to, enum csum which)
__setup_new_csum16(&pktd->csum[packetds_last], from, to, which);
}
-static void __set_csum16_static(size_t from, size_t to, enum csum which)
+static void __set_csum16_static(size_t from, size_t to, enum csum which __maybe_unused)
{
struct packet *pkt = &packets[packet_last];
uint16_t sum;