svnno****@sourc*****
svnno****@sourc*****
Sat Feb 23 20:25:29 JST 2008
Revision: 3391 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3391 Author: ikezoe Date: 2008-02-23 20:25:29 +0900 (Sat, 23 Feb 2008) Log Message: ----------- 2008-02-23 Hiroyuki Ikezoe <poinc****@ikezo*****> * macro/gecko.m4: Add -Wsign-conversion option if gcc vesion is greater than 4.3. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/macros/gecko.m4 Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2008-02-22 15:36:56 UTC (rev 3390) +++ kazehakase/trunk/ChangeLog 2008-02-23 11:25:29 UTC (rev 3391) @@ -1,3 +1,8 @@ +2008-02-23 Hiroyuki Ikezoe <poinc****@ikezo*****> + + * macro/gecko.m4: Add -Wsign-conversion option if gcc vesion is greater + than 4.3. + 2008-02-23 Kouhei Sutou <kou****@cozmi*****> * module/embed/gecko/kz-mozwrapper.cpp, Modified: kazehakase/trunk/macros/gecko.m4 =================================================================== --- kazehakase/trunk/macros/gecko.m4 2008-02-22 15:36:56 UTC (rev 3390) +++ kazehakase/trunk/macros/gecko.m4 2008-02-23 11:25:29 UTC (rev 3391) @@ -32,6 +32,14 @@ CPPFLAGS="-I$MOZILLA_INCLUDE_ROOT -I$MOZILLA_INCLUDE_ROOT/widget -I$MOZILLA_INCLUDE_ROOT/layout -I$MOZILLA_INCLUDE_ROOT/helperAppDlg -I$MOZILLA_INCLUDE_ROOT/dom -I$MOZILLA_INCLUDE_ROOT/exthandler -I$MOZILLA_INCLUDE_ROOT/pipnss -I$MOZILLA_INCLUDE_ROOT/necko -I$MOZILLA_INCLUDE_ROOT/gfx -I$MOZILLA_INCLUDE_ROOT/content -I$MOZILLA_INCLUDE_ROOT/locale -I$MOZILLA_INCLUDE_ROOT/docshell -I$MOZILLA_INCLUDE_ROOT/mimetype -I$MOZILLA_INCLUDE_ROOT/nkcache `$PKG_CONFIG --cflags-only-I $GECKO_MODULE` -Wconversion -Wsign-compare -Werror" CXXFLAGS="$AM_CXXFLAGS `$PKG_CONFIG --cflags-only-other $GECKO_MODULE`" +if test "x$GCC" = "xyes"; then + gxx_version=`g++ -dumpversion` + gxx_major_version=`echo $gxx_version | cut -d "." -f 1` + gxx_minor_version=`echo $gxx_version | cut -d "." -f 2` + if test $gxx_major_version -eq 4 -a $gxx_minor_version -ge 3; then + CPPFLAGS="$CPPFLAGS -Wsign-conversion" + fi +fi AC_MSG_RESULT([$CXXFLAGS]) dnl **************************************************************