From: Peter Howkins Date: Tue, 13 Jan 2015 14:50:05 +0000 (+0000) Subject: dtpad: Resolve 7 compiler warnings. X-Git-Tag: 2.2.3~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f913c616eeb80147ee0d96c7a8938e4e2907d822;p=oweals%2Fcde.git dtpad: Resolve 7 compiler warnings. --- diff --git a/cde/programs/dtpad/main.c b/cde/programs/dtpad/main.c index ff18cf71..ef37464b 100644 --- a/cde/programs/dtpad/main.c +++ b/cde/programs/dtpad/main.c @@ -1822,7 +1822,7 @@ Usage( template = (GETMESSAGE(7,10, message_string2)); - fprintf (stderr, template); + fprintf (stderr, "%s", template); exit (0); } diff --git a/cde/programs/dtpad/ttSaveSupport.c b/cde/programs/dtpad/ttSaveSupport.c index 6315e5d3..c63871fe 100644 --- a/cde/programs/dtpad/ttSaveSupport.c +++ b/cde/programs/dtpad/ttSaveSupport.c @@ -57,13 +57,13 @@ /* definitions from tttk/tttkutils.h */ char _TTKeys[7]; -#define _TTCBKey ((int)&_TTKeys[0]) -#define _TTClientCBKey ((int)&_TTKeys[1]) -#define _TTClientDataKey ((int)&_TTKeys[2]) -#define _TTDepositPatKey ((int)&_TTKeys[3]) -#define _TTJoinInfoKey ((int)&_TTKeys[4]) -#define _TTContractKey ((int)&_TTKeys[5]) -#define _TTSubContractKey ((int)&_TTKeys[6]) +#define _TTCBKey ((int)(intptr_t)&_TTKeys[0]) +#define _TTClientCBKey ((int)(intptr_t)&_TTKeys[1]) +#define _TTClientDataKey ((int)(intptr_t)&_TTKeys[2]) +#define _TTDepositPatKey ((int)(intptr_t)&_TTKeys[3]) +#define _TTJoinInfoKey ((int)(intptr_t)&_TTKeys[4]) +#define _TTContractKey ((int)(intptr_t)&_TTKeys[5]) +#define _TTSubContractKey ((int)(intptr_t)&_TTKeys[6]) extern Editor *pPadList; /* list of Editor instances - declared in main.c */