X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=config%2Flyxinclude.m4;h=cbd9564ce77f4fc05b5a336e163c3c3bcd83eb29;hb=39a450bc3df66faa5c6c22d3b6b4e7c70a5d1c7d;hp=a430a0933a028380aea50ee88834ebdd94536944;hpb=a9b448a027036c65c40b372bd19e02f243d1f1ab;p=lyx.git diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4 index a430a0933a..cbd9564ce7 100644 --- a/config/lyxinclude.m4 +++ b/config/lyxinclude.m4 @@ -194,7 +194,7 @@ dnl Check the version of g++ fi if test x$with_warnings = xyes ; then case $gxx_version in - 2.95.*) CXXFLAGS="$CXXFLAGS -W -Wall -Wconversion";; + 2.95.*) CXXFLAGS="$CXXFLAGS -W -Wall -Wconversion -Winline";; 2.96*) CXXFLAGS="$CXXFLAGS -W -Wall -Wconversion";; *) CXXFLAGS="$CXXFLAGS -ansi -W -Wall -Wno-return-type";; esac @@ -345,8 +345,10 @@ AC_DEFUN(LYX_CXX_STL_STRING,[ using std::string; ],[ string a("hello there"); - a.clear(); + a.erase(); a = "hey"; + char s[] = "y"; + int t = a.compare(a.length() - 1, 1, s); a.erase(); ],[ with_included_string=no