From 1aa1edbfab22d9d15807b7be408cc3d5670f47a7 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 23 May 2026 07:47:04 +0000 Subject: [PATCH] ape/cc: silence -F and -B 'ignored' warnings -F comes from CFLAGS=-Fw in sys/src/ape/config (parsed as -F then -w by ARGBEGIN). Pass it through to the native compiler like -w/-N/-T. -B is passed explicitly by many mkfiles; cc.c already adds it internally when !Aflag. Accept it explicitly, set Aflag=1 to prevent the duplicate, and pass it to the compiler. Both previously fell to the default: case printing "flag ignored". https://claude.ai/code/session_01WGAwvvTwDg2yknFkmZ3qzs --- sys/src/ape/9src/cc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/src/ape/9src/cc.c b/sys/src/ape/9src/cc.c index 0540a1aa6..45256669c 100644 --- a/sys/src/ape/9src/cc.c +++ b/sys/src/ape/9src/cc.c @@ -122,8 +122,13 @@ main(int argc, char *argv[]) case 'N': case 'T': case 'w': + case 'F': append(&cc, smprint("-%c", ARGC())); break; + case 'B': + append(&cc, "-B"); + Aflag = 1; + break; case 'O': break; case 'W':