Skip to content

Commit

Permalink
Not all C++ compilers recognize (or need) -Wall.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanfeldstein authored and steveicarus committed Jan 25, 2010
1 parent 80ef952 commit b6e6225
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ MAN = @MAN@
PS2PDF = @PS2PDF@

CPPFLAGS = @ident_support@ @DEFS@ -I. -I$(srcdir) @CPPFLAGS@
CXXFLAGS = -Wall @CXXFLAGS@
CXXFLAGS = @WARNING_CXXFLAGS@ @CXXFLAGS@
PICFLAGS = @PICFLAG@
LDFLAGS = @rdynamic@ @LDFLAGS@

Expand Down
2 changes: 2 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ AC_CHECK_DECL(__SUNPRO_C,AC_SUBST(WARNING_CFLAGS,),AC_SUBST(WARNING_CFLAGS,-Wall

AC_LANG(C++)

AC_CHECK_DECL(__SUNPRO_CC,AC_SUBST(WARNING_CXXFLAGS,),AC_SUBST(WARNING_CXXFLAGS,-Wall))

AC_CHECK_HEADERS(getopt.h malloc.h inttypes.h libiberty.h iosfwd sys/wait.h)

AC_CHECK_LIB(z, gzwrite)
Expand Down

0 comments on commit b6e6225

Please sign in to comment.