summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-10-07 07:54:38 +0200
committerWerner Koch <wk@gnupg.org>2016-10-07 07:54:38 +0200
commit5d43d28aa3c44c3a27fde823f467b0c4be1a58c2 (patch)
treeac9b72878c427c77de2058c3ffbf230aaf7a910d /doc
parentagent, dirmngr, scd: Fix init_common_subsystems. (diff)
downloadgnupg2-5d43d28aa3c44c3a27fde823f467b0c4be1a58c2.tar.xz
gnupg2-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 <wk@gnupg.org>
Diffstat (limited to 'doc')
-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.