From 697415eb4e22f6a788de55fcb2294ca8d70ebb20 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 28 Dec 2011 08:55:09 +0000 Subject: WaE and build errors with OSL_DEBUG_LEVEL == 2 --- rsc/source/rscpp/cpp4.c | 3 ++- rsc/source/rscpp/cpp6.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'rsc') diff --git a/rsc/source/rscpp/cpp4.c b/rsc/source/rscpp/cpp4.c index 3f5e03a0b5b7..2d5f747ee0e0 100644 --- a/rsc/source/rscpp/cpp4.c +++ b/rsc/source/rscpp/cpp4.c @@ -26,6 +26,7 @@ * ************************************************************************/ +#include #include #include #include "cppdef.h" @@ -622,7 +623,7 @@ void dumpparm(char* why) { register int i; - fprintf( pCppOut, "dump of %d parameters (%d bytes total) %s\n", + fprintf( pCppOut, "dump of %d parameters (%" SAL_PRI_SIZET "u bytes total) %s\n", nargs, parmp - parm, why); for (i = 0; i < nargs; i++) { fprintf( pCppOut, "parm[%d] (%d) = \"%s\"\n", diff --git a/rsc/source/rscpp/cpp6.c b/rsc/source/rscpp/cpp6.c index cb628ba4c04d..0fb51d75c42f 100644 --- a/rsc/source/rscpp/cpp6.c +++ b/rsc/source/rscpp/cpp6.c @@ -26,6 +26,7 @@ * ************************************************************************/ +#include #include #include #include @@ -667,7 +668,7 @@ void dumpdef(char *why) fprintf( pCppOut, "CPP symbol table dump %s\n", why); for (syp = symtab; syp < &symtab[SBSIZE]; syp++) { if ((dp = *syp) != (DEFBUF *) NULL) { - fprintf( pCppOut, "symtab[%d]\n", (syp - symtab)); + fprintf( pCppOut, "symtab[%" SAL_PRI_PTRDIFFT "d]\n", (syp - symtab)); do { dumpadef((char *) NULL, dp); } while ((dp = dp->link) != (DEFBUF *) NULL); -- cgit