diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-10-18 23:05:58 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-10-18 23:10:56 +0200 |
commit | bf1f0183d5c6b4c94acdbee27276d5a386a657f4 (patch) | |
tree | 3d4d60a59f935ee11011ebea33ccb6d9fab5063c /rsc | |
parent | 0eee1cf957d122ac0d805a9589a5db075a94e4a1 (diff) |
Some fixes for "clang version 3.1 (trunk 142234)" (with --enable-werror, on Linux x86_64).
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/inc/rscerror.h | 2 | ||||
-rw-r--r-- | rsc/source/rscpp/cpp1.c | 2 |
2 files changed, 3 insertions, 1 deletions
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++; |