]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: fix formats under MIPS64/PPC
authorRosen Penev <rosenp@gmail.com>
Tue, 2 Jul 2024 19:35:44 +0000 (12:35 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jul 2024 08:35:23 +0000 (10:35 +0200)
__SANE_USERSPACE_TYPES__ needs to be defined to get consistent 64-bit
type defines and to fix -Wformat warnings.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://lore.kernel.org/r/20240702193544.5984-1-rosenp@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Makefile

index 17be33f787474329f83ace7c1fac247a9177dc35..2652fac4e6ee2c89c61d23a8cfcfe88825900983 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ CFLAGS ?= -O2 -g
 CFLAGS += -Wall -Wextra -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
 CFLAGS += -Werror-implicit-function-declaration -Wsign-compare -Wno-unused-parameter
 CFLAGS += -Wdeclaration-after-statement
+CFLAGS += -D__SANE_USERSPACE_TYPES__
 CFLAGS += $(CFLAGS_EVAL)
 CFLAGS += $(EXTRA_CFLAGS)