Add -Wshadow to bpf_cc_defaults
Test: m Change-Id: I08899d0c1bbdb05c3a2ef7df4b0debe748c25d94
This commit is contained in:
parent
588140f93a
commit
c52a98dde5
2 changed files with 4 additions and 3 deletions
|
|
@ -48,6 +48,7 @@ cc_defaults {
|
|||
"-Werror=sometimes-uninitialized",
|
||||
"-Wextra",
|
||||
"-Wnullable-to-nonnull-conversion",
|
||||
"-Wshadow",
|
||||
"-Wsign-compare",
|
||||
"-Wtautological-unsigned-zero-compare",
|
||||
"-Wthread-safety",
|
||||
|
|
|
|||
|
|
@ -431,9 +431,9 @@ static int readCodeSections(ifstream& elfFile, vector<codeSection>& cs,
|
|||
vector<string> csSymNames;
|
||||
ret = getSectionSymNames(elfFile, oldName, csSymNames, STT_FUNC);
|
||||
if (ret || !csSymNames.size()) return ret;
|
||||
for (size_t i = 0; i < progDefNames.size(); ++i) {
|
||||
if (!progDefNames[i].compare(csSymNames[0] + "_def")) {
|
||||
cs_temp.prog_def = pd[i];
|
||||
for (size_t j = 0; j < progDefNames.size(); ++j) {
|
||||
if (!progDefNames[j].compare(csSymNames[0] + "_def")) {
|
||||
cs_temp.prog_def = pd[j];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue