------- Comment #7 from hunor at cs dot bme dot hu  2008-02-11 17:50 -------
I got the same error on i686-pc-linux-gnu with revision 132237. The -Werror is
indeed the result of --enable-maintainer-mode:

libstdc++-v3/acinclude.m4:
...
  if test x"$USE_MAINTAINER_MODE" = xno; then
    WERROR=''
  else
    WERROR='-Werror'
  fi
...

libstdc++-v3/fragment.am:
...
WARN_CXXFLAGS = \
        $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once
...

libstdc++-v3/src/Makefile.am:
...
AM_CXXFLAGS = \
        -fno-implicit-templates \
        $(WARN_CXXFLAGS) \
        $(OPTIMIZE_CXXFLAGS) \
        $(CONFIG_CXXFLAGS)
...

libstdc++-v3/libsupc++/Makefile.am:
...
AM_CXXFLAGS = \
        -fno-implicit-templates \
        $(LIBSUPCXX_PICFLAGS) \
        $(WARN_CXXFLAGS) \
        $(OPTIMIZE_CXXFLAGS) \
        $(CONFIG_CXXFLAGS)
...

Otherwise, the warning is correct:
gcc/unwind-pe.h:
...
static unsigned int
size_of_encoded_value (unsigned char encoding)
...

is indeed unused in libstdc++-v3/libsupc++/eh_call.cc. It should be static
inline or __attribute__((unused)), or alternatively
libstdc++-v3/libsupc++/eh_call.cc could define NO_SIZE_OF_ENCODED_VALUE before
including the header.


-- 

hunor at cs dot bme dot hu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hunor at cs dot bme dot hu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34780

Reply via email to