Commit bc99bb6b by Corentin Wallez

Enable more warnings on GCC and clang

BUG=angleproject:892 Change-Id: I74ca341f29b245f698d1e1ad43149a91db46817f Reviewed-on: https://chromium-review.googlesource.com/271411Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 0326a3ac
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
'-Wextra', '-Wextra',
'-Wformat=2', '-Wformat=2',
'-Winit-self', '-Winit-self',
'-Wno-sign-compare',
'-Wno-unused-function', '-Wno-unused-function',
'-Wno-unused-parameter', '-Wno-unused-parameter',
'-Wno-unknown-pragmas', '-Wno-unknown-pragmas',
...@@ -30,9 +29,7 @@ ...@@ -30,9 +29,7 @@
'-Wpointer-arith', '-Wpointer-arith',
'-Wundef', '-Wundef',
'-Wwrite-strings', '-Wwrite-strings',
'-Wno-reorder',
'-Wno-format-nonliteral', '-Wno-format-nonliteral',
'-Wno-deprecated-register',
], ],
}, },
'target_defaults': 'target_defaults':
......
...@@ -18,9 +18,9 @@ class CallDAG::CallDAGCreator : public TIntermTraverser ...@@ -18,9 +18,9 @@ class CallDAG::CallDAGCreator : public TIntermTraverser
public: public:
CallDAGCreator(TInfoSinkBase *info) CallDAGCreator(TInfoSinkBase *info)
: TIntermTraverser(true, false, true), : TIntermTraverser(true, false, true),
mCreationInfo(info),
mCurrentFunction(nullptr), mCurrentFunction(nullptr),
mCurrentIndex(0), mCurrentIndex(0)
mCreationInfo(info)
{ {
} }
......
...@@ -26,8 +26,8 @@ class InitializeVariables : public TIntermTraverser ...@@ -26,8 +26,8 @@ class InitializeVariables : public TIntermTraverser
typedef TVector<InitVariableInfo> InitVariableInfoList; typedef TVector<InitVariableInfo> InitVariableInfoList;
InitializeVariables(const InitVariableInfoList &vars) InitializeVariables(const InitVariableInfoList &vars)
: mCodeInserted(false), : mVariables(vars),
mVariables(vars) mCodeInserted(false)
{ {
} }
......
...@@ -39,8 +39,10 @@ class TParseContext : angle::NonCopyable ...@@ -39,8 +39,10 @@ class TParseContext : angle::NonCopyable
bool debugShaderPrecisionSupported) bool debugShaderPrecisionSupported)
: intermediate(interm), : intermediate(interm),
symbolTable(symt), symbolTable(symt),
mDeferredSingleDeclarationErrorCheck(false),
mShaderType(type), mShaderType(type),
mShaderSpec(spec), mShaderSpec(spec),
mShaderVersion(100),
mTreeRoot(nullptr), mTreeRoot(nullptr),
mLoopNestingLevel(0), mLoopNestingLevel(0),
mStructNestingLevel(0), mStructNestingLevel(0),
...@@ -52,11 +54,9 @@ class TParseContext : angle::NonCopyable ...@@ -52,11 +54,9 @@ class TParseContext : angle::NonCopyable
mDefaultMatrixPacking(EmpColumnMajor), mDefaultMatrixPacking(EmpColumnMajor),
mDefaultBlockStorage(EbsShared), mDefaultBlockStorage(EbsShared),
mDiagnostics(is), mDiagnostics(is),
mShaderVersion(100),
mDirectiveHandler(ext, mDiagnostics, mShaderVersion, debugShaderPrecisionSupported), mDirectiveHandler(ext, mDiagnostics, mShaderVersion, debugShaderPrecisionSupported),
mPreprocessor(&mDiagnostics, &mDirectiveHandler), mPreprocessor(&mDiagnostics, &mDirectiveHandler),
mScanner(nullptr), mScanner(nullptr),
mDeferredSingleDeclarationErrorCheck(false),
mUsesFragData(false), mUsesFragData(false),
mUsesFragColor(false) mUsesFragColor(false)
{ {
......
...@@ -111,9 +111,9 @@ Extensions::Extensions() ...@@ -111,9 +111,9 @@ Extensions::Extensions()
textureCompressionDXT3(false), textureCompressionDXT3(false),
textureCompressionDXT5(false), textureCompressionDXT5(false),
depthTextures(false), depthTextures(false),
textureStorage(false),
textureNPOT(false), textureNPOT(false),
drawBuffers(false), drawBuffers(false),
textureStorage(false),
textureFilterAnisotropic(false), textureFilterAnisotropic(false),
maxTextureAnisotropy(false), maxTextureAnisotropy(false),
occlusionQueryBoolean(false), occlusionQueryBoolean(false),
......
...@@ -144,10 +144,10 @@ LinkedVarying::LinkedVarying(const std::string &name, GLenum type, GLsizei size, ...@@ -144,10 +144,10 @@ LinkedVarying::LinkedVarying(const std::string &name, GLenum type, GLsizei size,
Program::Program(rx::ProgramImpl *impl, ResourceManager *manager, GLuint handle) Program::Program(rx::ProgramImpl *impl, ResourceManager *manager, GLuint handle)
: mProgram(impl), : mProgram(impl),
mValidated(false), mValidated(false),
mTransformFeedbackVaryings(),
mTransformFeedbackBufferMode(GL_NONE),
mFragmentShader(nullptr), mFragmentShader(nullptr),
mVertexShader(nullptr), mVertexShader(nullptr),
mTransformFeedbackVaryings(),
mTransformFeedbackBufferMode(GL_NONE),
mLinked(false), mLinked(false),
mDeleteStatus(false), mDeleteStatus(false),
mRefCount(0), mRefCount(0),
......
...@@ -25,12 +25,12 @@ namespace gl ...@@ -25,12 +25,12 @@ namespace gl
Shader::Shader(ResourceManager *manager, rx::ShaderImpl *impl, GLenum type, GLuint handle) Shader::Shader(ResourceManager *manager, rx::ShaderImpl *impl, GLenum type, GLuint handle)
: mShader(impl), : mShader(impl),
mType(type),
mHandle(handle), mHandle(handle),
mResourceManager(manager), mType(type),
mRefCount(0), mRefCount(0),
mDeleteStatus(false), mDeleteStatus(false),
mCompiled(false) mCompiled(false),
mResourceManager(manager)
{ {
ASSERT(impl); ASSERT(impl);
} }
......
...@@ -228,13 +228,13 @@ InternalFormat::InternalFormat() ...@@ -228,13 +228,13 @@ InternalFormat::InternalFormat()
stencilBits(0), stencilBits(0),
pixelBytes(0), pixelBytes(0),
componentCount(0), componentCount(0),
compressed(false),
compressedBlockWidth(0), compressedBlockWidth(0),
compressedBlockHeight(0), compressedBlockHeight(0),
format(GL_NONE), format(GL_NONE),
type(GL_NONE), type(GL_NONE),
componentType(GL_NONE), componentType(GL_NONE),
colorEncoding(GL_NONE), colorEncoding(GL_NONE),
compressed(false),
textureSupport(NeverSupported), textureSupport(NeverSupported),
renderSupport(NeverSupported), renderSupport(NeverSupported),
filterSupport(NeverSupported) filterSupport(NeverSupported)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment