BlamKiwi / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

unused-private-field error in default compile on Mac #638

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
On a Mac, OS X 10.9.2, Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 
3.3svn):
1. python build/gyp_angle
2. ninja (or make)
3. you'll see:
src/compiler/translator/VersionGLSL.h:52:18: error: private field 'mShaderType' 
is not used [-Werror,-Wunused-private-field]
    ShShaderType mShaderType;
1 error generated.

This is with a checkout of trunk and more or less following the instructions in 
the DevSetup wiki page for non-Windows to attempt to build the essl_to_glsl 
translator sample.

I'm grossly ignorant of how to properly operate gyp (so it may just be user 
error :), but I'm pretty sure this is just a straightforward case of -Wall 
including -Wunused-private-field, and mShaderType does indeed appear to be 
unused. Inserting -Wno-unused-private-field or just removing mShaderType from 
VersionGLSL.h and VersionGLSL.cpp seems to fix the problem.

Original issue reported on code.google.com by bcke...@google.com on 4 May 2014 at 3:05

GoogleCodeExporter commented 9 years ago
Fixed in f26ecc81cf58b831042db6701a1ed3448caf83cd. The clang build should now 
be clean. Thank you for reporting.

Original comment by shannonw...@chromium.org on 16 Jun 2014 at 6:36