I'm experiencing a strange discrepancy in Android Studio warning counts on the same project. On my machine, I get around 1000 build warnings, but my boss, gets around 25,000 build boss's build warnings. Both builds are correct.
There are a lot more -Winconsistent-missing-override warnings in my boss's build than mine. For example, in the below snippet of code, I wouldnt get -Winconsistent-missing-override warnings, but his is. So I thought this could be something related to "modernize-use-override", I tried adding it in clangtidy but still didn't get it.
class Base {
public:
virtual void foo() {}
virtual void bar() {}
};
class Derived : public Base {
public:
void foo() {
int a=0;
}
void bar() {
}
};
Both our setups use the same android gradle plugin 8.7.3 and Gradle 8.9 and same gradle jdk (gradle local javahome jetbrains). In Android SDK Tools, we have same Android SDK Build Tools 36-rc5, same CMake, same NDK side by side, installed. We are also using same OS and build variant. Boss's Apple clang version 13.1.6 (clang-1316.0.21.2.5) and mine is Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Steps Ive taken after seeing other stack overflow answers
- I've ensured that all inspections (Settings->Editor->Inspections] are enabled
- cleaned and rebuilt the project to rule out incremental build issues.
- I also tried adding .gradle.warning.mode=all in gradle.properties
None of this has worked. Are the warnings getting suppressed?