diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-17 15:36:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-17 15:51:54 +0200 |
commit | a15715c34309416e76ebd2007a51ff6c42f28817 (patch) | |
tree | 8794c25b33abbcd8b050fe71dbd6576949741f0e /soltools/mkdepend/cppsetup.c | |
parent | 6fcc7efad066d6f3804196f3d3fbddd6a0a485cb (diff) |
-Wstrict-prototypes
...no reason to not have it enabled for URE C include files and what
little real C code is still left. (But note that Clang ignores that
warning.)
Change-Id: Ia6940f9f940a0c226e9b724331d65c9862ce32e6
Diffstat (limited to 'soltools/mkdepend/cppsetup.c')
-rw-r--r-- | soltools/mkdepend/cppsetup.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/soltools/mkdepend/cppsetup.c b/soltools/mkdepend/cppsetup.c index f4cdaa55eeb1..7d967741b14f 100644 --- a/soltools/mkdepend/cppsetup.c +++ b/soltools/mkdepend/cppsetup.c @@ -119,10 +119,7 @@ struct _parse_data { }; static const char * -_my_if_errors (ip, cp, expecting) - IfParser *ip; - const char *cp; - const char *expecting; +_my_if_errors (IfParser *ip, const char *cp, const char *expecting) { #ifdef DEBUG_MKDEPEND struct _parse_data *pd = (struct _parse_data *) ip->data; @@ -154,9 +151,7 @@ _my_if_errors (ip, cp, expecting) #define MAXNAMELEN 256 char * -_lookup_variable (var, len) - const char *var; - int len; +_lookup_variable (const char *var, int len) { char tmpbuf[MAXNAMELEN + 1]; @@ -170,10 +165,7 @@ _lookup_variable (var, len) static int -_my_eval_defined (ip, var, len) - IfParser *ip; - const char *var; - int len; +_my_eval_defined (IfParser *ip, const char *var, int len) { (void)ip; if (_lookup_variable (var, len)) @@ -185,10 +177,7 @@ _my_eval_defined (ip, var, len) #define isvarfirstletter(ccc) (isalpha(ccc) || (ccc) == '_') static int -_my_eval_variable (ip, var, len) - IfParser *ip; - const char *var; - int len; +_my_eval_variable (IfParser *ip, const char *var, int len) { char *s; |