Lars Gullik Bjønnes wrote:
> Angus Leeming <[EMAIL PROTECTED]> writes:
>
> | Hello all,
> |
> | $ gcc --version
> | gcc (GCC) 3.3.1 20030626 (Debian prerelease)
> |
> | I find many warning messages like
>
> Many? That was an understatement... thousands upon thousands you
> mean... (at least with gcc 3.4)
I'm just a polite kind of guy. gcc 3.3 reports thousands of 'em too.
> | Can I ask why config/lyxinclude.m4 explicitly requests a warning
> | message in this case?
> I hoped it to be usable, but with excessive reporting it is not...
> so -Winline should just be removed.
Here is the patch for 1.3.x at least.
--
Angus
Index: status.13x
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/Attic/status.13x,v
retrieving revision 1.1.2.98
diff -u -p -r1.1.2.98 status.13x
--- status.13x 10 Jul 2003 11:27:49 -0000 1.1.2.98
+++ status.13x 15 Jul 2003 14:56:06 -0000
@@ -76,3 +76,4 @@ What's new
- fix compilation on HP-UX 11.x
+- Do not report failed inlining when compiling with gcc.
Index: config/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/config/ChangeLog,v
retrieving revision 1.86.2.16
diff -u -p -r1.86.2.16 ChangeLog
--- config/ChangeLog 10 Jul 2003 11:27:50 -0000 1.86.2.16
+++ config/ChangeLog 15 Jul 2003 14:56:06 -0000
@@ -1,3 +1,7 @@
+2003-07-15 Angus Leeming <[EMAIL PROTECTED]>
+
+ * lyxinclude.m4: Do not pass the -Winline option to gcc.
+
2003-07-03 Jean-Marc Lasgouttes <[EMAIL PROTECTED]>
* configure.in:
Index: config/lyxinclude.m4
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/config/lyxinclude.m4,v
retrieving revision 1.81
diff -u -p -r1.81 lyxinclude.m4
--- config/lyxinclude.m4 10 Jan 2003 14:06:45 -0000 1.81
+++ config/lyxinclude.m4 15 Jul 2003 14:56:06 -0000
@@ -223,13 +223,6 @@ if test x$GXX = xyes; then
3.1*) CXXFLAGS="$CXXFLAGS -W -Wall";;
*) CXXFLAGS="$CXXFLAGS -W -Wall";;
esac
- if test $lyx_devel_version = yes ; then
- case $gxx_version in
- 2.95.*) ;;
- 2.96*) ;;
- *) CXXFLAGS="$CXXFLAGS -Winline";;
- esac
- fi
fi
fi])dnl