Преглед изворни кода

build: remove more compiler warnings.

legacy
Sam Hocevar sam пре 13 година
родитељ
комит
1899d6e40b
2 измењених фајлова са 7 додато и 3 уклоњено
  1. +6
    -2
      configure.ac
  2. +1
    -1
      src/bullet/Makefile.am

+ 6
- 2
configure.ac Прегледај датотеку

@@ -158,8 +158,12 @@ LOL_TRY_CXXFLAGS(-Wsign-compare, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wsign-compare"])


dnl Add these even though they're implicitly set, so that we can safely dnl Add these even though they're implicitly set, so that we can safely
dnl remove them from within a Makefile. dnl remove them from within a Makefile.
LOL_TRY_CXXFLAGS(-Wno-maybe-uninitialized, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wno-maybe-uninitialized"])
LOL_TRY_CXXFLAGS(-Wno-narrowing, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wno-narrowing"])
LOL_TRY_CXXFLAGS(-Wmaybe-uninitialized, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wmaybe-uninitialized"])
LOL_TRY_CXXFLAGS(-Wnarrowing, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wnarrowing"])
LOL_TRY_CXXFLAGS(-Wunused, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wunused"])
LOL_TRY_CXXFLAGS(-Wstrict-aliasing, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wstrict-aliasing"])
LOL_TRY_CXXFLAGS(-Wreorder, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wreorder"])
LOL_TRY_CXXFLAGS(-Wparentheses, [AM_CPPFLAGS="${AM_CPPFLAGS} -Wparentheses"])




AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm") AC_CHECK_LIB(m, sin, MATH_LIBS="${MATH_LIBS} -lm")


+ 1
- 1
src/bullet/Makefile.am Прегледај датотеку

@@ -7,7 +7,7 @@ noinst_LIBRARIES = liblolbullet.a
# what the compiler actually accepts. # what the compiler actually accepts.
disable_cflags = $(filter $(AM_CPPFLAGS:-W%=-Wno-%), \ disable_cflags = $(filter $(AM_CPPFLAGS:-W%=-Wno-%), \
-Wno-shadow -Wno-unused -Wno-cast-qual -Wno-strict-aliasing \ -Wno-shadow -Wno-unused -Wno-cast-qual -Wno-strict-aliasing \
-Wno-reorder -Wno-maybe-uninitialized, -Wno-narrowing \
-Wno-reorder -Wno-maybe-uninitialized -Wno-narrowing \
-Wno-parentheses) -Wno-parentheses)


liblolbullet_a_SOURCES = $(bullet_sources) liblolbullet_a_SOURCES = $(bullet_sources)


Loading…
Откажи
Сачувај