Replace '-Werror' with '-w': Inhibit all warning messages. 15/222315/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.0/unified/20201030.104706 accepted/tizen/6.0/unified/hotfix/20201103.000409 accepted/tizen/6.5/unified/20211028.120025 accepted/tizen/7.0/unified/20221110.062319 accepted/tizen/7.0/unified/hotfix/20221116.110532 accepted/tizen/unified/20200114.130615 submit/tizen/20200114.003256 submit/tizen_6.0/20201029.205501 submit/tizen_6.0_hotfix/20201102.192901 submit/tizen_6.0_hotfix/20201103.115101 submit/tizen_6.5/20211028.163201 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release
authorDongkyun Son <dongkyun.s@samsung.com>
Mon, 13 Jan 2020 10:23:36 +0000 (19:23 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Mon, 13 Jan 2020 10:45:16 +0000 (19:45 +0900)
to ignore kernel warning on GCC9 e.g,

include/linux/init.h:342:6: error: 'init_module' specifies less
restrictive attribute than its target '__init_mod': 'cold'
[-Werror=missing-attributes]
[   27s]   342 |  int init_module(void) __attribute__((alias(#initfn)));
[   27s]       |      ^~~~~~~~~~~

Change-Id: I50242ccd7e154bcdc817d3912e7a20a03a6d8b5f
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
modules/build.sh

index 5b1e3a5..0a3a9a0 100755 (executable)
@@ -76,7 +76,7 @@ else
        show_usage_and_exit
 fi
 
-MCFLAGS="-Werror"
+MCFLAGS="-w"
 
 CMDLINE_ARGS=""
 CMDLINE_ARGS="CROSS_COMPILE=${TOOLCHAIN} ARCH=${ARCH} -C ${KERNELDIR}"