Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Josh Triplett
Date: Wednesday, June 13, 2007 - 1:25 pm

Ramsay Jones wrote:
6k
ulted
commit
its 106
to pass
 exactly

ant to
mind?
rate!)

If you don't mind the set of warnings you get, then sure, use -Wall.

Some of the ones I had in mind:
* -Wshadow.  Not everyone cares.
* -Wptr-subtraction-blows.  This warns any time you do ptr2 - ptr1.
* -Wundefined-preprocessor.  This warns if you ever do
  #if SYMBOL
  when SYMBOL might not actually have a definition.  Many projects do exa=
ctly
  that, and the C standard allows it.
* -Wtypesign.  Off by default for the same reason that GCC doesn't give s=
ign
   mismatches by default: too many codebases with too many sloppy signedn=
ess
   issues that drown out other issues.

ired, or

If you don't mind that, then sure.  You might have to adjust the warning =
list
to taste from time to time.  But please do use -Wall if you feel comforta=
ble
with the warnings it produces.

ge to
 =20
imited.
nce with
71 warnings)
e.

True; for a project the size of Git, you can reasonably handle all the
warnings as you did.

If you want to use -Wall with sparse, you can always pass -Wall to sparse=

directly, or use CHECK=3D"sparse -Wall" cgcc. =20

- Josh Triplett
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target, Josh Triplett, (Wed Jun 13, 1:25 pm)