Explorar el Código

Disable some more warnings to be warnings-free.

Josh Haberman hace 10 años
padre
commit
30cbd4c561
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      python/setup.py

+ 2 - 1
python/setup.py

@@ -151,7 +151,8 @@ if __name__ == '__main__':
   warnings_as_errors = '--warnings_as_errors'
   if cpp_impl in sys.argv:
     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:
       extra_compile_args.append('-Werror')