[Pkg-gnupg-commit] [gnupg2] 67/166: common: Avoid warning about implicit declaration of gnupg_fd_valid.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Mar 16 22:33:06 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 8810314e377a9cb6612150a57cf99260ed0bb9f6
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date:   Wed Feb 8 12:05:08 2017 -0500

    common: Avoid warning about implicit declaration of gnupg_fd_valid.
    
    * common/logging.c: Add #include "sysutils.h".
    
    --
    
    Without this, we see:
    
    logging.c:573:9: warning: implicit declaration of function \
      ‘gnupg_fd_valid’ [-Wimplicit-function-declaration]
       if (! gnupg_fd_valid (fd))
             ^~~~~~~~~~~~~~
    
    Signed-off-by: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
---
 common/logging.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/logging.c b/common/logging.c
index ac13053..670affb 100644
--- a/common/logging.c
+++ b/common/logging.c
@@ -61,6 +61,7 @@
 #include "i18n.h"
 #include "common-defs.h"
 #include "logging.h"
+#include "sysutils.h"
 
 #ifdef HAVE_W32_SYSTEM
 # define S_IRGRP S_IRUSR

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list