From b1cf8c2d7c37a3e4bc89a1553375c269a5742cca Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Sat, 23 Oct 2010 16:16:16 +0200 Subject: [PATCH] CodingGuidelines: add a note to help contributors catch some errors earlier. It is a bit of a shame to wait for other's review before noticing decl-after-stmt situations, whereas a quick check could have found it. There are probably a number of other autoamted checks which could be described here, but that's a start. Signed-off-by: Yann Dirson --- Documentation/CodingGuidelines | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/CodingGuidelines b/Documentation/CodingGuidelines index ba2006d892..adcdd557a4 100644 --- a/Documentation/CodingGuidelines +++ b/Documentation/CodingGuidelines @@ -144,6 +144,11 @@ For C programs: - When we pass pair to functions, we should try to pass them in that order. + - C code is expected to compile when the build is launched with the + following command: + + make CFLAGS="-Wall -Wdeclaration-after-statement -Werror" + Writing Documentation: Every user-visible change should be reflected in the documentation. -- 2.11.4.GIT