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

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

From
Masaya Suzuki <masayasuzuki@google.com>
Date
Dec 27, 2018, 18:46 UTC
Message-ID
<CAJB1erVmZQd_kLU1fqL7cURrEUz2EJ4Br0kgVQt7T-mk3s95dQ@mail.gmail.com>
In-Reply-To
<CACsJy8CM=H1njP3ZzuReS0u_YRPTS6pGhFWWMBHoaKVNBYiXXA@mail.gmail.com>
On Thu, Dec 27, 2018 at 10:36 AM Duy Nguyen <pclouds@gmail.com> wrote:
Show 8 quoted lines
>
> On Thu, Dec 27, 2018 at 7:18 PM Masaya Suzuki <masayasuzuki@google.com> wrote:
> >
> > Without -Wformat, -Wformat-security won't work.
> >
> > > cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
>
> Compiler name and version?
I'm not familar with the tools, so please be patient.
According to Makefile, `CC = cc`. With `cc --version`, it says:

cc (Debian 7.3.0-5) 7.3.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Jonathan said there was the same patch. Looks like https://public-inbox.org/git/20181012184037.15076-1-t.gummerer@gmail.com/. I'll check my config again.

Previous: Duy Nguyen
Message 3 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.