Re: [PATCH] files-backend.c: fix build error on Solaris
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Nov 25, 2018, 10:40 UTC
- Message-ID
- <CACsJy8AJZ52XuWoCiMT_2=RT_a3OaAhSuekc1YY2-B9zc6y64Q@mail.gmail.com>
- In-Reply-To
- <CAPUEsphe9eXk8zLE35iRq-M9a-tukj8APQ0gHzR6PHfNZNLxLA@mail.gmail.com>
On Sun, Nov 25, 2018 at 11:19 AM Carlo Arenas <carenas@gmail.com> wrote:
Show 9 quoted lines
> > Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> > > clang with -Wpedantic also catch this (at least with Apple LLVM > version 10.0.0); recent versions of gcc also include that flag and at > least 8.2.0 shows a warning for it, so it might be worth adding it to > developer mode (maybe under the pedantic DEVOPTS), would this be > something I should be adding?, what are the expectations around > warnings and compilers?
make DEVELOPER=1 DEVOPTS=pedantic (with either gcc 7.3.0 or 8.2.0) can already catch this. I have no comment if this pedantic should be part of default DEVELOPER=1. But at least in controlled environments like Travis, we could turn it on to catch more.
-- Duy