master - debug: Use // for commented out debug #defines
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ce9a5cc25712907f05aa780d53d727b16f5dfd7c Commit: ce9a5cc25712907f05aa780d53d727b16f5dfd7c Parent: 36c5bb40a27c7faac2a167df8c5cbd7c98c5168d Author: Alasdair G Kergon <[email protected]> AuthorDate: Mon Sep 16 20:20:26 2013 +0100 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Mon Sep 16 20:20:26 2013 +0100
debug: Use // for commented out debug #defines
The traditional style used for optional editable definitions
/* #define X /* */
produces a bogus warning from gcc -Wall.
Rather than suppressing this with -Wno-comment, switch over to the // comment style.
--- tools/toollib.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
tools/toollib.c +1 -1
@@ -66,7 +66,7 @@ int become_daemon(struct cmd_context *cmd, int skip_lvm) strerror(errno));/* Set this to avoid discarding output from background process */ -/* #define DEBUG_CHILD */ +// #define DEBUG_CHILD #ifndef DEBUG_CHILD if ((null_fd =open (devnull,O_RDWR )) ==-1 ) {