diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-28 08:55:09 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-05 09:18:15 +0000 |
commit | 697415eb4e22f6a788de55fcb2294ca8d70ebb20 (patch) | |
tree | b1922dc55657ddd49bb62a64737d6447b65b70bb /rsc | |
parent | ae8bb0032fdd9007b0fd716aab2648af7754d48a (diff) |
WaE and build errors with OSL_DEBUG_LEVEL == 2
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/rscpp/cpp4.c | 3 | ||||
-rw-r--r-- | rsc/source/rscpp/cpp6.c | 3 |
2 files changed, 4 insertions, 2 deletions
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 <sal/types.h> #include <stdio.h> #include <ctype.h> #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 <sal/types.h> #include <stdio.h> #include <ctype.h> #include <string.h> @@ -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); |