aboutsummaryrefslogtreecommitdiffstats
path: root/doc/HACKING
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-10-07 05:54:38 +0000
committerWerner Koch <[email protected]>2016-10-07 05:54:38 +0000
commit5d43d28aa3c44c3a27fde823f467b0c4be1a58c2 (patch)
treeac9b72878c427c77de2058c3ffbf230aaf7a910d /doc/HACKING
parentagent, dirmngr, scd: Fix init_common_subsystems. (diff)
downloadgnupg-5d43d28aa3c44c3a27fde823f467b0c4be1a58c2.tar.gz
gnupg-5d43d28aa3c44c3a27fde823f467b0c4be1a58c2.zip
gpg: Put extra parens around bit tests.
* g10/options.h (DBG_MPI): New. * g10/gpg.c (set_debug): Use macro or extra parens for binary operator. * g10/parse-packet.c (set_packet_list_mode): Use dbg macro. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'doc/HACKING')
-rw-r--r--doc/HACKING2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/HACKING b/doc/HACKING
index bb04fdf6b..e7174793e 100644
--- a/doc/HACKING
+++ b/doc/HACKING
@@ -174,6 +174,8 @@ Note that such a comment will be removed if the git commit option
indicate a problem with the code.
- Never init static or file local variables to 0 to make sure they
end up in BSS.
+ - But extra parenthesis around terms with binary operators to make
+ it clear that the binary operator was indeed intended.
- Use --enable-maintainer-mode with configure so that all suitable
warnings are enabled.