summaryrefslogtreecommitdiff
path: root/idlc/source/errorhandler.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-07-19 15:18:15 +0000
committerKurt Zenker <kz@openoffice.org>2006-07-19 15:18:15 +0000
commit0fe53d41ab3569951ac3f79920620be9bf323814 (patch)
tree17181279f26857384728f3c405e9f2a0bea7cb03 /idlc/source/errorhandler.cxx
parent32937be08c68403aa0f41ea8db37f144ea81c3e5 (diff)
INTEGRATION: CWS warningfixes02 (1.13.4); FILE MERGED
2006/06/30 11:55:37 sb 1.13.4.1: #i66577# Made the code compile (warning-free) on a unxlngi6.pro GCC 4.1.1 Linux box.
Diffstat (limited to 'idlc/source/errorhandler.cxx')
-rw-r--r--idlc/source/errorhandler.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/idlc/source/errorhandler.cxx b/idlc/source/errorhandler.cxx
index 3c91f0e21d0d..0bf3d760cab3 100644
--- a/idlc/source/errorhandler.cxx
+++ b/idlc/source/errorhandler.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: errorhandler.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: hr $ $Date: 2006-06-20 03:48:18 $
+ * last change: $Author: kz $ $Date: 2006-07-19 16:18:15 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -505,7 +505,8 @@ static void errorHeader(ErrorCode eCode, sal_Int32 lineNumber)
else
file = idlc()->getFileName();
- fprintf(stderr, "%s(%d) : %s", file.getStr(), lineNumber,
+ fprintf(stderr, "%s(%lu) : %s", file.getStr(),
+ sal::static_int_cast< unsigned long >(lineNumber),
errorCodeToMessage(eCode));
}
@@ -522,7 +523,8 @@ static void warningHeader(WarningCode wCode)
else
file = idlc()->getFileName();
- fprintf(stderr, "%s(%d) : WARNING, %s", file.getStr(), idlc()->getLineNumber(),
+ fprintf(stderr, "%s(%lu) : WARNING, %s", file.getStr(),
+ sal::static_int_cast< unsigned long >(idlc()->getLineNumber()),
warningCodeToMessage(wCode));
}