--- 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"]