Skip to content

Commit fec60f4

Browse files
committed
Fix make error
1 parent 6ba72d0 commit fec60f4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Attacker/installTools.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,11 @@ fi
368368
apt-get install -y pkg-config libnl-3-dev libnl-genl-3-dev libpcap-dev
369369
cd "${TOOLS}"
370370
[ ! -d mdk4 ] && git clone https://github.com/aircrack-ng/mdk4
371-
cd mdk4 && make -j"$(nproc)" && make install
371+
# -Wno-unterminated-string-initialization silences ~500 harmless warnings GCC 15
372+
# emits on mdk4's manufactor.h OUI table (no -Werror upstream, so cosmetic only).
373+
# Pass mdk4's own default CFLAGS + the suppression (src/Makefile uses ?=, so a
374+
# command-line CFLAGS overrides it and propagates to the sub-make).
375+
cd mdk4 && make -j"$(nproc)" CFLAGS="-g -O3 -Wall -Wextra -fcommon -Wno-unterminated-string-initialization" && make install
372376

373377
# air-hammer with python2 if available
374378
cd "${TOOLS}"

0 commit comments

Comments
 (0)