Browse Source

Disable some more warnings to be warnings-free.

Josh Haberman 10 years ago
parent
commit
30cbd4c561
1 changed files with 2 additions and 1 deletions
  1. 2 1
      python/setup.py

+ 2 - 1
python/setup.py

@@ -151,7 +151,8 @@ if __name__ == '__main__':
   warnings_as_errors = '--warnings_as_errors'
   warnings_as_errors = '--warnings_as_errors'
   if cpp_impl in sys.argv:
   if cpp_impl in sys.argv:
     sys.argv.remove(cpp_impl)
     sys.argv.remove(cpp_impl)
-    extra_compile_args = ['-Wno-write-strings']
+    extra_compile_args = ['-Wno-write-strings', '-Wno-shorten-64-to-32',
+                          '-Wno-invalid-offsetof']
 
 
     if warnings_as_errors in sys.argv:
     if warnings_as_errors in sys.argv:
       extra_compile_args.append('-Werror')
       extra_compile_args.append('-Werror')