This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] Fix warnings in regex
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Tim Shen <timshen91 at gmail dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 17 Oct 2013 20:57:21 +0200
- Subject: Re: [Patch] Fix warnings in regex
- Authentication-results: sourceware.org; auth=none
- References: <CAPrifD=nHj5-uiuqsUV+C7QrJC+0Oywe5mhDKE4pADJpVjJCYg at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Oct 17, 2013 at 02:50:35PM -0400, Tim Shen wrote:
> ...to prevent potential bugs.
>
> By the way, I execute `g++ -E file.cc > prep.cc && sed -i 's|^#.*$||'
> prep.cc && g++ -Wall prep.cc 2> log` to get all warnings. Do we have a
> better way?
Sure, -Wsystem-headers -Wall.
Jakub