Hello,
When compiling the source files in bootstrap/soltools/mkdepend, we're
getting a lot of these warnings :
"warning : call to function 'foo' without a real prototype".
The attached patch should fix this issue.
Best regards,
Cyril Roelandt.
From 2776fa2c869b9d640ed039c8c43c6300dfe7ce65 Mon Sep 17 00:00:00 2001
From: Cyril Roelandt <tipecaml@gmail.com>
Date: Tue, 26 Apr 2011 08:44:57 +0200
Subject: [PATCH] Fixing prototypes in soltools/mkdepend/ .
---
soltools/mkdepend/def.h | 16 +++++++++-------
soltools/mkdepend/ifparser.h | 2 +-
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/soltools/mkdepend/def.h b/soltools/mkdepend/def.h
index 472eb60..b8a6659 100644
--- a/soltools/mkdepend/def.h
+++ b/soltools/mkdepend/def.h
@@ -153,13 +153,15 @@ char *malloc();
char *realloc();
#endif
-char *copy();
-char *base_name();
-char *get_line();
-char *isdefined();
-struct filepointer *getfile();
-struct inclist *newinclude();
-struct inclist *inc_path();
+char *copy(char *);
+char *base_name(char *);
+char *get_line(struct filepointer *);
+char *isdefined(char *);
+struct filepointer *getfile(char *);
+struct inclist *newinclude(register char *newfile,
+ register char *incstring);
+struct inclist *inc_path(char *, char *, boolean,
+ struct IncludesCollection *);
void define( char *def, struct symhash **symbols );
void hash_define(char *name, char * val, struct symhash **symbols);
diff --git a/soltools/mkdepend/ifparser.h b/soltools/mkdepend/ifparser.h
index 316cdca..936f0ba 100644
--- a/soltools/mkdepend/ifparser.h
+++ b/soltools/mkdepend/ifparser.h
@@ -72,6 +72,6 @@ typedef struct _if_parser {
char *data;
} IfParser;
-const char *ParseIfExpression (/* IfParser *, const char *, int * */);
+const char *ParseIfExpression (IfParser *, const char *, int *);
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
--
1.7.3.4
Context
- [Libreoffice] [PATCH] Fixing prototypes in bootstrap/soltools/mkdepend · Cyril Roelandt
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.