clang + OVERRIDE == warnings?

211 views
Skip to first unread message

Ryan Hamilton

unread,
Dec 6, 2011, 1:24:15 PM12/6/11
to chromium-dev
Hi Folks,

I suspect I'm doing something wrong.  I'm attempting to configure my linux build to use clang.    This mostly seems to work, but I'm getting *tons* of these warnings when I build:

./base/threading/thread_collision_warner.h:142:23: warning: 'override' keyword accepted as a C++11 extension [-Wc++11-extensions]
  virtual void warn() OVERRIDE;

Any idea what bone-headed newbie mistake I'm making?

Cheers,

Ryan

Nico Weber

unread,
Dec 6, 2011, 2:22:57 PM12/6/11
to r...@chromium.org, chromium-dev
You forgot to set clang=1 in your gyp defines. Run
`GYP_DEFINES=clang=1 build/gyp_chromium`. See
http://code.google.com/p/chromium/wiki/Clang

Nico

> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev

Reply all
Reply to author
Forward
0 new messages