Bug 1530

Summary: add -Werror flags to C++ compiler
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P1    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2235    

Description Andrew Cagney 2005-10-22 22:10:39 UTC
especially -Wformat
Comment 1 Andrew Cagney 2005-10-23 03:44:46 UTC
Turns out it was a bug in common/Makefile.rules.  Due to a typo ($(top_buildir)
vs $(top_builddir)), AM_CXXFLAGS expanded to -I -Werror.

Index: frysk-imports/tests/ChangeLog
2005-10-22  Andrew Cagney  <cagney@redhat.com>

        * Makefile.am: Add copyright.
        (werror/java.sh, werror/cxx.sh): New targets.
        (werror/FAIL): Delete.
        * werror/Werror.cxx: New file, contains -Wformat error.

Index: frysk-sys/common/ChangeLog
2005-10-22  Andrew Cagney  <cagney@redhat.com>

        * Makefile.rules (AM_CXXFLAGS): Fix -I argument, $(top_builddir),
        not $(top_buildir).

Index: frysk-sys/frysk/sys/ChangeLog
2005-10-22  Andrew Cagney  <cagney@redhat.com>

        * cni/Errno.cxx (throwRuntimeException): New function.
        (vajprintf): New function, use throughout.
        * cni/Errno.hxx (throwRuntimeException): Declare variant with
        message, suffix, and val parameters.
        * cni/Wait.cxx (processStatus): Use.