git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Specify -Wformat along with -Wformat-security

From
Masaya Suzuki <masayasuzuki@google.com>
Date
Dec 27, 2018, 06:58 UTC
Message-ID
<20181227065855.68632-1-masayasuzuki@google.com>
Without -Wformat, -Wformat-security won't work.
> cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
---
 config.mak.dev | 1 +
 1 file changed, 1 insertion(+)
diff --git a/config.mak.dev b/config.mak.dev
index bbeeff44f..aae9db67d 100644
--- a/config.mak.dev
+++ b/config.mak.dev
@@ -7,6 +7,7 @@ CFLAGS += -pedantic
 CFLAGS += -DUSE_PARENS_AROUND_GETTEXT_N=0
 endif
 CFLAGS += -Wdeclaration-after-statement
+CFLAGS += -Wformat
 CFLAGS += -Wformat-security
 CFLAGS += -Wno-format-zero-length
 CFLAGS += -Wold-style-definition
-- 
2.20.1.415.g653613c723-goog
Next: Duy Nguyen
Message 1 of 3 in “Specify -Wformat along with -Wformat-security”
  1. Specify -Wformat along with -Wformat-securityMasaya Suzuki, Dec 27, 2018
  2. Duy NguyenDec 27, 2018
  3. Masaya SuzukiDec 27, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.