Open Bug 818474 Opened 12 years ago Updated 2 years ago

Consider using -Wc++98-compat with clang

Categories

(Firefox Build System :: General, defect)

x86
macOS
defect

Tracking

(Not tracked)

People

(Reporter: espindola, Unassigned)

Details

It would warn on cases like

enum foo {
  bar
};

int f() {
  return foo::bar;
}


$ clang test.cpp -c -std=c++11 -Wc++98-compat
test.cpp:6:10: warning: enumeration type in nested name specifier is
      incompatible with C++98 [-Wc++98-compat]
  return foo::bar;


Which in combination with -Werror should avoid bugs like 818381.
What other implications will this have?
(In reply to Ehsan Akhgari [:ehsan] from comment #1)
> What other implications will this have?

Not sure, I haven't tried a full build with it, just the reduced test in the description.
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.