diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-02-01 16:41:59 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2014-02-01 16:48:19 +1100 |
commit | 24cb3d0681d9196d57176a0a94bfc6e610ef7b45 (patch) | |
tree | 9632917fb8fc895aa554d7b9a4eeeb5f221aa36f /dtc.h | |
parent | c231d94e0f620bc25c76415e09f7dea939064bd8 (diff) | |
download | dtc-24cb3d0681d9196d57176a0a94bfc6e610ef7b45.tar.gz |
dtc: fix some more -Wshadow warnings
Building on a RHEL6 system produced the following -Wshadow warnings in
fstree.c, util.c and checks.c:
cc1: warnings being treated as errors
checks.c: In function 'parse_checks_option':
checks.c:709: error: declaration of 'optarg' shadows a global
declaration
/usr/include/getopt.h:59: error: shadowed declaration is here
make[1]: *** [checks.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** Waiting for unfinished jobs....
cc1: warnings being treated as errors
fstree.c: In function 'read_fstree':
fstree.c:40: error: declaration of 'tmpnam' shadows a global
declaration
/usr/include/stdio.h:208: error: shadowed declaration is here
make[1]: *** [fstree.o] Error 1
cc1: warnings being treated as errors
util.c: In function 'xstrdup':
util.c:42: error: declaration of 'dup' shadows a global declaration
/usr/include/unistd.h:528: error: shadowed declaration is here
Fix all of these -Wshadow warnings by using slightly different variable
names which won't collide with anything else.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'dtc.h')
-rw-r--r-- | dtc.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -247,7 +247,7 @@ void sort_tree(struct boot_info *bi); /* Checks */ -void parse_checks_option(bool warn, bool error, const char *optarg); +void parse_checks_option(bool warn, bool error, const char *arg); void process_checks(bool force, struct boot_info *bi); /* Flattened trees */ |