From a42a92dcb6fd0c1d17dc8d1f0233eae996a28093 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Wed, 19 Jul 2006 15:25:28 +0000 Subject: INTEGRATION: CWS warningfixes02 (1.5.4); FILE MERGED 2006/06/30 11:57:01 sb 1.5.4.1: #i66577# Made the code compile (warning-free) on a unxlngi6.pro GCC 4.1.1 Linux box. --- jvmfwk/plugins/sunmajor/pluginlib/diagnostics.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'jvmfwk/plugins/sunmajor/pluginlib/diagnostics.h') diff --git a/jvmfwk/plugins/sunmajor/pluginlib/diagnostics.h b/jvmfwk/plugins/sunmajor/pluginlib/diagnostics.h index 1ebacab5772c..d0d7c0da031e 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/diagnostics.h +++ b/jvmfwk/plugins/sunmajor/pluginlib/diagnostics.h @@ -4,9 +4,9 @@ * * $RCSfile: diagnostics.h,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: hr $ $Date: 2006-06-20 00:08:30 $ + * last change: $Author: kz $ $Date: 2006-07-19 16:25:28 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -100,7 +100,9 @@ inline void jfw_warning2(bool condition, const sal_Char * pzFile, sal_Int32 line sal_Char * pzMessage) { if (! condition) - fprintf(stderr, "%s\n File: %s\n Line: %i", pzMessage, pzFile, line); + fprintf( + stderr, "%s\n File: %s\n Line: %ld", pzMessage, pzFile, + sal::static_int_cast< unsigned long >(line)); } inline void jfw_trace(rtl::OUString message) -- cgit