Enable Wformat-security

Howdy,
Could someone please advise how I would enable -Wformat-security when building Haiku (or its sub-components)? I assume its in the ArchitectureRules file but I am not familiar with it enough t figure out where.
Thanks!

See https://git.haiku-os.org/haiku/tree/build/jam/ArchitectureRules#n104

EDIT: GCC 2 : it should be protected with β€œif $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) != 1”

2 Likes

So just adding after β€œ-Woverloaded-virtual” would be sufficient? 64bit only testing in this case.

Can confirm that is the correct location. Thanks!