efl-cxx: Add -Wno-shadow to disable huge warnings in C++
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Mon, 13 Aug 2018 15:12:44 +0000 (11:12 -0400)
committerShinwoo Kim <cinoo.kim@samsung.com>
Fri, 17 Aug 2018 04:15:03 +0000 (13:15 +0900)
Summary:
-Wno-shadow warnings disable a improper warning directive for C++, this is made because
it is common for people to use the same CFLAGS as CXXFLAGS, enabling, unadvertadly, the
smae warning for C and C++.

Reviewers: zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers, zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6821

configure.ac

index 2ad1a39..5617940 100755 (executable)
@@ -23,6 +23,7 @@ AM_CONDITIONAL([HAVE_AM_16], [test $(echo "${am__api_version}"|cut -d. -f2) -ge
 AC_USE_SYSTEM_EXTENSIONS
 
 CFOPT_WARNING=""
+CXXFLAGS="${CXXFLAGS} -Wno-shadow" # No shadow warnings
 
 #### Apply configuring with legacy api's only, eo api's or both.