diff options
author | Petr Štetiar <ynezz@true.cz> | 2023-03-29 09:45:04 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2023-03-29 09:54:51 +0200 |
commit | 3fe07401f60fbd2f2d14ea631a4142b38d9edfa0 (patch) | |
tree | 1835d720661b057d2d34c940faa9bd422dc3a2e9 /bonding.c | |
parent | 463a1207f0766417866e2c28316e58a96f84370b (diff) | |
download | netifd-3fe07401f60fbd2f2d14ea631a4142b38d9edfa0.tar.gz |
treewide: fix multiple compiler warnings
Fixes bunch of clang-15/gcc-10 compiler warnings, mostly related to
blobmsg_for_each_attr() usage:
error: comparison of integers of different signs: 'int' and 'unsigned long' [-Werror,-Wsign-compare]
error: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Werror,-Wsign-compare]
error: format string is not a string literal [-Werror,-Wformat-nonliteral]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'bonding.c')
-rw-r--r-- | bonding.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -353,7 +353,7 @@ bonding_config_init(struct device *dev) { struct bonding_device *bdev; struct blob_attr *cur; - int rem; + size_t rem; bdev = container_of(dev, struct bonding_device, dev); |