Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Macro redefined warnings in zftp.c



On Thu, 30 Oct 2014 16:23:58 -0700 (PDT)
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Just noticed these (harmless but lengthy) compiler warnings when building
> on MacOS:
> 
> 
> In file included from zftp.c:54:
> ./zftp.mdh:5:12: warning: 'boot_' macro redefined
> #   define boot_ boot_zshQszftp
>            ^
> ./tcp.mdh:5:12: note: previous definition is here
> #   define boot_ boot_zshQsnetQstcp
>            ^

I don't think we need the internal module definitions for the tcp module
in the zftp module, just the public interface.

diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c
index d16e2f6..09d4bd7 100644
--- a/Src/Modules/zftp.c
+++ b/Src/Modules/zftp.c
@@ -50,7 +50,6 @@ struct zftp_session;
 typedef struct zftp_session *Zftp_session;
 
 #include "tcp.h"
-#include "tcp.mdh"
 #include "zftp.mdh"
 #include "zftp.pro"
 
pws



Messages sorted by: Reverse Date, Date, Thread, Author