silence compile warnings python3
authorGP Orcullo <kinsamanka@gmail.com>
Wed, 09 Nov 2022 22:17:13 +0800
branchpython3
changeset 3779 31c9409a5841
parent 3778 296e459efdfb
child 3780 fdd7f9938e59
silence compile warnings
targets/Linux/__init__.py
targets/OSX/__init__.py
--- a/targets/Linux/__init__.py	Wed Nov 09 17:29:59 2022 +0800
+++ b/targets/Linux/__init__.py	Wed Nov 09 22:17:13 2022 +0800
@@ -32,7 +32,7 @@
     extension = ".so"
 
     def getBuilderCFLAGS(self):
-        additional_cflags = ["-fPIC"]
+        additional_cflags = ["-fPIC", "-Wno-implicit-function-declaration", "-Wno-int-conversion"]
         build_for_realtime = self.CTRInstance.GetTarget().getcontent().getRealTime()
         if build_for_realtime:
             additional_cflags.append("-DREALTIME_LINUX")
--- a/targets/OSX/__init__.py	Wed Nov 09 17:29:59 2022 +0800
+++ b/targets/OSX/__init__.py	Wed Nov 09 22:17:13 2022 +0800
@@ -23,7 +23,6 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 
-
 from ..toolchain_gcc import toolchain_gcc
 
 
@@ -33,8 +32,9 @@
 
     def getBuilderCFLAGS(self):
         return toolchain_gcc.getBuilderCFLAGS(self) + \
-                ["-fPIC", "-Wno-deprecated-declarations",
-                 "-Wno-parentheses-equality", "-Wno-varargs"]
+            ["-fPIC", "-Wno-deprecated-declarations",
+             "-Wno-implicit-function-declaration", "-Wno-int-conversion",
+             "-Wno-parentheses-equality", "-Wno-varargs"]
 
     def getBuilderLDFLAGS(self):
         return toolchain_gcc.getBuilderLDFLAGS(self) + ["-shared"]