dtpad: Resolve 7 compiler warnings.
authorPeter Howkins <flibble@users.sf.net>
Tue, 13 Jan 2015 14:50:05 +0000 (14:50 +0000)
committerPeter Howkins <flibble@users.sf.net>
Tue, 13 Jan 2015 14:50:05 +0000 (14:50 +0000)
cde/programs/dtpad/main.c
cde/programs/dtpad/ttSaveSupport.c

index ff18cf716e4183bef9c75d79f85e12c45158424c..ef37464b6e81c7e821cd2c8085c639ce6b224d99 100644 (file)
@@ -1822,7 +1822,7 @@ Usage(
 
    template = (GETMESSAGE(7,10, message_string2));
 
-   fprintf (stderr, template);
+   fprintf (stderr, "%s", template);
 
    exit (0);
 }
index 6315e5d3768e22ce9b93ea1bae78f65ffc7c81d6..c63871fe9887613d6bb543c460785d8c09e35134 100644 (file)
 
 /* 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 */