summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2018-09-26 15:32:49 +0200
committerJérôme Forissier <jerome.forissier@linaro.org>2018-09-27 14:28:44 +0200
commit439203cb04cee677a6cd8bf9cb02b82d626713cc (patch)
treef139daddb8eac442584a4db881a2d3cbf67519f9 /README.md
parent2197c7c208773910eafa378cbc5504cbe5d97df6 (diff)
Allow mixed declaration and code
Removes the -Wdeclaration-after-statement compiler flag to allow mixed declaration and code Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0aa7a2fda..7a320f09c 100644
--- a/README.md
+++ b/README.md
@@ -120,6 +120,9 @@ the code also follows GlobalPlatform standards. The exceptions are as follows:
deviate too much from upstream and therefore it would be hard to rebase
against those projects later on and we don't expect that it is easy to
convince other software projects to change coding style.
+ Automatic variables should always be initialized. Mixed declarations
+ and statements are allowed, and may be used to avoid assigning useless
+ values. Please leave one blank line before and after such declarations.
Regarding the checkpatch tool, it is not included directly into this project.
Please use checkpatch.pl from the Linux kernel git in combination with the