summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-27 15:25:46 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-27 15:27:39 +0200
commite48a2339600d12d43148bbdb9a47770ae9bc94e3 (patch)
treedcaa8b52ed44f0b6c22b02c29910cea6b1ea46a3 /rsc
parentb05b970daaf69b5b491b847375ee07539de9481f (diff)
loplugin:unreffun: also warn about redundant redeclarations
Change-Id: I9a812220b58cf6da00d854e65794f7c673ab239d
Diffstat (limited to 'rsc')
-rw-r--r--rsc/source/rscpp/cpp3.c9
-rw-r--r--rsc/source/rscpp/cpp4.c2
-rw-r--r--rsc/source/rscpp/cpp5.c1
-rw-r--r--rsc/source/rscpp/cpp6.c1
4 files changed, 0 insertions, 13 deletions
diff --git a/rsc/source/rscpp/cpp3.c b/rsc/source/rscpp/cpp3.c
index 287b2a583d88..b7cf288adf57 100644
--- a/rsc/source/rscpp/cpp3.c
+++ b/rsc/source/rscpp/cpp3.c
@@ -28,10 +28,6 @@
#include <string.h>
-#ifndef _NO_PROTO
-int AddInclude( char *pIncStr ); /* BP, 11.09.91, Forward-Deklaration */
-#endif
-
#if (OSL_DEBUG_LEVEL > 1) && (HOST == SYS_VMS || HOST == SYS_UNIX)
#include <signal.h>
#endif
@@ -75,7 +71,6 @@ void addfile(FILE* fp, char* filename)
*/
{
FILEINFO *file;
- extern FILEINFO *getfile( int, char * );
file = getfile(NBUFF, filename);
file->fp = fp; /* Better remember FILE * */
file->buffer[0] = EOS; /* Initialize for first read */
@@ -440,10 +435,6 @@ void initdefines()
int i;
time_t tvec;
-#if !defined( WNT ) && !defined(G3)
- extern char *ctime(time_t const *);
-#endif
-
/*
* Predefine the built-in symbols. Allow the
* implementor to pre-define a symbol as "" to
diff --git a/rsc/source/rscpp/cpp4.c b/rsc/source/rscpp/cpp4.c
index 6473669e7b63..087f15fbccfe 100644
--- a/rsc/source/rscpp/cpp4.c
+++ b/rsc/source/rscpp/cpp4.c
@@ -397,7 +397,6 @@ void expand(DEFBUF* tokenp)
{
int c;
FILEINFO *file;
- extern FILEINFO *getfile(int, char *);
#if OSL_DEBUG_LEVEL > 1
if (debug)
@@ -553,7 +552,6 @@ void expstuff(DEFBUF* tokenp)
char *defend; /* -> output buff end */
int string_magic; /* String formal hack */
FILEINFO *file; /* Funny #include */
- extern FILEINFO *getfile(int, char *);
file = getfile(NBUFF, tokenp->name);
inp = tokenp->repl; /* -> macro replacement */
diff --git a/rsc/source/rscpp/cpp5.c b/rsc/source/rscpp/cpp5.c
index 4b09f60d453c..7d26842c4dde 100644
--- a/rsc/source/rscpp/cpp5.c
+++ b/rsc/source/rscpp/cpp5.c
@@ -218,7 +218,6 @@ eval()
int skip; /* For short-circuit testing */
int value[NEXP]; /* Value stack */
OPTAB opstack[NEXP]; /* Operand stack */
- extern int *evaleval(int *, int, int); /* Does actual evaluation */
valp = value;
opp = opstack;
opp->op = OP_END; /* Mark bottom of stack */
diff --git a/rsc/source/rscpp/cpp6.c b/rsc/source/rscpp/cpp6.c
index 75909647dc39..963676d597cf 100644
--- a/rsc/source/rscpp/cpp6.c
+++ b/rsc/source/rscpp/cpp6.c
@@ -1021,7 +1021,6 @@ void ungetstring(char* text)
*/
{
FILEINFO *file;
- extern FILEINFO *getfile(int, char *);
file = getfile(strlen(text) + 1, "");
strcpy(file->buffer, text);
}