From c7cd918c156c752cea22b315a1f53363bf264975 Mon Sep 17 00:00:00 2001 From: Tianjie Xu Date: Tue, 29 Aug 2017 12:06:02 -0700 Subject: Turn on -Wall for libedify Bug: 64939312 Test: mma Change-Id: Ia4afc6241b1f11ce261be6840f21a793b23014a6 --- edify/Android.mk | 4 ++-- edify/lexer.ll | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/edify/Android.mk b/edify/Android.mk index ffd54c208..baf4dd21d 100644 --- a/edify/Android.mk +++ b/edify/Android.mk @@ -28,7 +28,7 @@ LOCAL_SRC_FILES := \ $(edify_src_files) \ edify_parser.cpp -LOCAL_CFLAGS := -Werror +LOCAL_CFLAGS := -Wall -Werror LOCAL_CPPFLAGS := -g -O0 LOCAL_MODULE := edify_parser LOCAL_YACCFLAGS := -v @@ -46,7 +46,7 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := $(edify_src_files) -LOCAL_CFLAGS := -Werror +LOCAL_CFLAGS := -Wall -Werror LOCAL_CPPFLAGS := -Wno-unused-parameter LOCAL_CPPFLAGS += -Wno-deprecated-register LOCAL_MODULE := libedify diff --git a/edify/lexer.ll b/edify/lexer.ll index b764d1699..cb4594371 100644 --- a/edify/lexer.ll +++ b/edify/lexer.ll @@ -35,6 +35,8 @@ std::string string_buffer; %x STR +%option noinput +%option nounput %option noyywrap %% -- cgit v1.2.3