[ALPS03985298] build: skip native build warning

Add ccflags-y += -Wno-error=maybe-uninitialized to skip native warning

kernel/time/posix-cpu-timers.c:1205:13:
error: now may be used uninitialized in this function

net/unix/af_unix.c:1042:20:
error: hash may be used uninitialized in this function

MTK-Commit-Id: 74888cdf6f7f5a20a0d9467ff99ce1cc91b36396

Change-Id: I6ce26b97aafa2fac05df87178ec7b4019ad8f6fc
Signed-off-by: Jades Shih <jades.shih@mediatek.com>
CR-Id: ALPS03985298
Feature: [Module]Kernel Maintenance
This commit is contained in:
SW Integrator
2020-03-02 23:45:16 +08:00
committed by Jades Shih
parent 300b0b61ac
commit 05522f04af
2 changed files with 3 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
ccflags-y += -Wno-error=maybe-uninitialized
obj-y += time.o timer.o hrtimer.o
obj-y += timekeeping.o ntp.o clocksource.o jiffies.o timer_list.o
obj-y += timeconv.o timecounter.o alarmtimer.o

View File

@@ -2,6 +2,7 @@
#
# Makefile for the Linux unix domain socket layer.
#
ccflags-y += -Wno-error=maybe-uninitialized
obj-$(CONFIG_UNIX) += unix.o