Эх сурвалжийг харах

Disable some more warnings to be warnings-free.

Josh Haberman 10 жил өмнө
parent
commit
30cbd4c561
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  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')