fix: 内核模块编译增加-Werror编译选项,且清除内核编译告警

Close #I46E6S

Change-Id: If1362c02a0a344da881a9bf90e41f0a43ba33609
Signed-off-by: zhushengle <zhushengle@huawei.com>
This commit is contained in:
zhushengle
2021-09-06 15:42:41 +08:00
parent 459cabf7de
commit 3798091d87
22 changed files with 107 additions and 143 deletions

View File

@@ -26,15 +26,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
config("dynlink_config") {
include_dirs = [
"../../kernel/include",
"../../kernel/arch/include",
"../../utils",
".",
"//third_party/bounds_checking_function/include",
]
import("//kernel/liteos_m/config.gni")
config("dynlink_config") {
include_dirs = [ "./" ]
if (arch == "arm") {
include_dirs += [ "../../kernel/arch/arm/include" ]
} else {
@@ -47,5 +42,7 @@ static_library("dynlink") {
sources = [ "los_dynlink.c" ]
public_configs = [ ":dynlink_config" ]
configs += [ "$LITEOSTOPDIR:los_config" ]
deps = [ "//kernel/liteos_m/kal/posix" ]
}