Closed BrainBlasted closed 7 years ago
What compiler were you using? I can't believe neither gcc or msvc errored with this.
@neikeq maybe it's used as an initializer list, in which case it's perfectly fine.
I was using Clang
Ah, right. I'm using C++11. Any idea how to tell scons to disable it? I'm tired of not noticing these errors until travis notifies me.
I guess -std=c++03
?
But how do you pass compiler flags to scons?
It reads them from the environment AFAIK. I think there's also a scons option to define them, but env works. Not sure if CCFLAGS
works though or if it should be CFLAGS
+CXXFLAGS
.
export CCFLAGS='-std=c++03'
scons p=x11
There were a couple compiler errors in this file, can be viewed here.