summaryrefslogtreecommitdiff
path: root/idlc/source/idlcmain.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2003-10-20 12:07:41 +0000
committerOliver Bolte <obo@openoffice.org>2003-10-20 12:07:41 +0000
commit9375f6141272f5889ff603d248be37f8d1a4fc0d (patch)
treeefe99f53e07cc16a561cd94968a26192f8a9bef0 /idlc/source/idlcmain.cxx
parent0f99fe2bd2c60791f8c9702098ecfaee6ab96db1 (diff)
INTEGRATION: CWS sdk08 (1.6.42); FILE MERGED
2003/09/16 13:42:42 jsc 1.6.42.1: #111025# warning support
Diffstat (limited to 'idlc/source/idlcmain.cxx')
-rw-r--r--idlc/source/idlcmain.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/idlc/source/idlcmain.cxx b/idlc/source/idlcmain.cxx
index 5ec81f224782..e17714d5a88b 100644
--- a/idlc/source/idlcmain.cxx
+++ b/idlc/source/idlcmain.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: idlcmain.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: jsc $ $Date: 2002-11-13 17:24:54 $
+ * last change: $Author: obo $ $Date: 2003-10-20 13:07:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -93,6 +93,12 @@ int SAL_CALL main( int argc, char** argv )
fprintf(stdout, "%s: compile '%s' ... \n",
options.getProgramName().getStr(), files[i].getStr());
nErrors = compileFile(sysFileName);
+
+ if ( idlc()->getWarningCount() )
+ fprintf(stdout, "%s: detected %d warnings compiling file '%s'\n",
+ options.getProgramName().getStr(), idlc()->getWarningCount(),
+ files[i].getStr(), options.prepareVersion().getStr());
+
if ( nErrors )
{
OString strippedFileName(sysFileName.copy(sysFileName.lastIndexOf(SEPARATOR) + 1));