Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
2f80c453
Commit
2f80c453
authored
Jan 22, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add C++ compiler flags with --enable-werror, remove -Wall from CPPFLAGS
parent
cf06c3fb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
3 deletions
+18
-3
configure.ac
configure.ac
+15
-0
examples/Makefile.am
examples/Makefile.am
+1
-1
src/Makefile.am
src/Makefile.am
+1
-1
third-party/Makefile.am
third-party/Makefile.am
+1
-1
No files found.
configure.ac
View file @
2f80c453
...
@@ -643,9 +643,13 @@ AM_CONDITIONAL([ENABLE_TINY_NGHTTPD],
...
@@ -643,9 +643,13 @@ AM_CONDITIONAL([ENABLE_TINY_NGHTTPD],
test "x${have_timerfd_create}" = "xyes"])
test "x${have_timerfd_create}" = "xyes"])
ac_save_CFLAGS=$CFLAGS
ac_save_CFLAGS=$CFLAGS
ac_save_CXXFLAGS=$CXXFLAGS
CFLAGS=
CFLAGS=
CXXFLAGS=
if test "x$werror" != "xno"; then
if test "x$werror" != "xno"; then
# For C compiler
AX_CHECK_COMPILE_FLAG([-Wall], [CFLAGS="$CFLAGS -Wall"])
AX_CHECK_COMPILE_FLAG([-Wall], [CFLAGS="$CFLAGS -Wall"])
AX_CHECK_COMPILE_FLAG([-Wextra], [CFLAGS="$CFLAGS -Wextra"])
AX_CHECK_COMPILE_FLAG([-Wextra], [CFLAGS="$CFLAGS -Wextra"])
AX_CHECK_COMPILE_FLAG([-Werror], [CFLAGS="$CFLAGS -Werror"])
AX_CHECK_COMPILE_FLAG([-Werror], [CFLAGS="$CFLAGS -Werror"])
...
@@ -691,12 +695,23 @@ if test "x$werror" != "xno"; then
...
@@ -691,12 +695,23 @@ if test "x$werror" != "xno"; then
AX_CHECK_COMPILE_FLAG([-Wredundant-decls], [CFLAGS="$CFLAGS -Wredundant-decls"])
AX_CHECK_COMPILE_FLAG([-Wredundant-decls], [CFLAGS="$CFLAGS -Wredundant-decls"])
# Only work with Clang for the moment
# Only work with Clang for the moment
AX_CHECK_COMPILE_FLAG([-Wheader-guard], [CFLAGS="$CFLAGS -Wheader-guard"])
AX_CHECK_COMPILE_FLAG([-Wheader-guard], [CFLAGS="$CFLAGS -Wheader-guard"])
# For C++ compiler
AC_LANG_PUSH(C++)
AX_CHECK_COMPILE_FLAG([-Wall], [CXXFLAGS="$CXXFLAGS -Wall"])
AX_CHECK_COMPILE_FLAG([-Werror], [CXXFLAGS="$CXXFLAGS -Werror"])
AX_CHECK_COMPILE_FLAG([-Wformat-security], [CXXFLAGS="$CXXFLAGS -Wformat-security"])
AC_LANG_POP()
fi
fi
WARNCFLAGS=$CFLAGS
WARNCFLAGS=$CFLAGS
WARNCXXFLAGS=$CXXFLAGS
CFLAGS=$ac_save_CFLAGS
CFLAGS=$ac_save_CFLAGS
CXXFLAGS=$ac_save_CXXFLAGS
AC_SUBST([WARNCFLAGS])
AC_SUBST([WARNCFLAGS])
AC_SUBST([WARNCXXFLAGS])
EXTRACFLAG=
EXTRACFLAG=
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [EXTRACFLAG="-fvisibility=hidden"])
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [EXTRACFLAG="-fvisibility=hidden"])
...
...
examples/Makefile.am
View file @
2f80c453
...
@@ -24,8 +24,8 @@
...
@@ -24,8 +24,8 @@
if
ENABLE_EXAMPLES
if
ENABLE_EXAMPLES
AM_CFLAGS
=
$(WARNCFLAGS)
AM_CFLAGS
=
$(WARNCFLAGS)
AM_CXXFLAGS
=
$(WARNCXXFLAGS)
AM_CPPFLAGS
=
\
AM_CPPFLAGS
=
\
-Wall
\
-I
$(top_srcdir)
/lib/includes
\
-I
$(top_srcdir)
/lib/includes
\
-I
$(top_builddir)
/lib/includes
\
-I
$(top_builddir)
/lib/includes
\
-I
$(top_srcdir)
/src/includes
\
-I
$(top_srcdir)
/src/includes
\
...
...
src/Makefile.am
View file @
2f80c453
...
@@ -27,9 +27,9 @@ check_PROGRAMS =
...
@@ -27,9 +27,9 @@ check_PROGRAMS =
TESTS
=
TESTS
=
AM_CFLAGS
=
$(WARNCFLAGS)
AM_CFLAGS
=
$(WARNCFLAGS)
AM_CXXFLAGS
=
$(WARNCXXFLAGS)
AM_CPPFLAGS
=
\
AM_CPPFLAGS
=
\
-DPKGDATADIR
=
'"
$(pkgdatadir)
"'
\
-DPKGDATADIR
=
'"
$(pkgdatadir)
"'
\
-Wall
\
-I
$(top_srcdir)
/lib/includes
\
-I
$(top_srcdir)
/lib/includes
\
-I
$(top_builddir)
/lib/includes
\
-I
$(top_builddir)
/lib/includes
\
-I
$(top_srcdir)
/lib
\
-I
$(top_srcdir)
/lib
\
...
...
third-party/Makefile.am
View file @
2f80c453
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
AM_CPPFLAGS
=
-Wall
@DEFS@
AM_CPPFLAGS
=
@DEFS@
if
ENABLE_THIRD_PARTY
if
ENABLE_THIRD_PARTY
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment