Fix some unused variables, and silence a clang warning about initialization override in vmentrytable.h

This commit is contained in:
Antonin ENFRUN
2014-05-12 00:21:50 +02:00
parent ceac71f1f5
commit da1fffaa09
4 changed files with 18 additions and 6 deletions

View File

@@ -24,6 +24,11 @@
* THE SOFTWARE.
*/
#if __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winitializer-overrides"
#endif // __clang__
static void* entry_table[256] = {
[0 ... 255] = &&entry_default,
[MP_BC_LOAD_CONST_FALSE] = &&entry_MP_BC_LOAD_CONST_FALSE,
@@ -110,3 +115,7 @@ static void* entry_table[256] = {
[MP_BC_IMPORT_FROM] = &&entry_MP_BC_IMPORT_FROM,
[MP_BC_IMPORT_STAR] = &&entry_MP_BC_IMPORT_STAR,
};
#if __clang__
#pragma clang diagnostic pop
#endif // __clang__