From bf1f0183d5c6b4c94acdbee27276d5a386a657f4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 18 Oct 2011 23:05:58 +0200 Subject: Some fixes for "clang version 3.1 (trunk 142234)" (with --enable-werror, on Linux x86_64). --- rsc/inc/rscerror.h | 2 ++ rsc/source/rscpp/cpp1.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'rsc') diff --git a/rsc/inc/rscerror.h b/rsc/inc/rscerror.h index bc1516a73c41..fc494c09d1d7 100644 --- a/rsc/inc/rscerror.h +++ b/rsc/inc/rscerror.h @@ -136,6 +136,8 @@ class RscError void ErrorFormat( const ERRTYPE& rError, RscTop * pClass, const RscId & aId ); public: + virtual ~RscError() {} + sal_uInt32 nErrors;// Anzahl der Fehler RscError( RscVerbosity _verbosity ) { fListing = NULL; diff --git a/rsc/source/rscpp/cpp1.c b/rsc/source/rscpp/cpp1.c index 014a14b1e65d..fbac898b7ed4 100644 --- a/rsc/source/rscpp/cpp1.c +++ b/rsc/source/rscpp/cpp1.c @@ -466,7 +466,7 @@ void cppmain() unget(); /* Reread the char. */ for (;;) { /* For the whole line, */ do { /* Token concat. loop */ - for (counter = 0; (type[(c = get())] == SPA);) { + for (counter = 0; type[(c = get())] == SPA;) { #if COMMENT_INVISIBLE if (c != COM_SEP) counter++; -- cgit v1.2.3