diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-05-02 12:26:20 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-05-02 12:26:20 +0000 |
commit | 139cecf1ea2f3106ee7a49b4d5ff05720a017848 (patch) | |
tree | 55739d2800c717fc75a3d5fa6bf6f178afe02fda /Build/source/libs/poppler | |
parent | 3885a302c73852a157575006fad0303e61b0aa34 (diff) |
libs/poppler, libs/xpdf: Add compiler options to suppress 'deprecatedconversion' warnings from g++-4.4
git-svn-id: svn://tug.org/texlive/trunk@22275 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/poppler')
-rw-r--r-- | Build/source/libs/poppler/ChangeLog | 15 | ||||
-rw-r--r-- | Build/source/libs/poppler/Makefile.am | 5 | ||||
-rw-r--r-- | Build/source/libs/poppler/Makefile.in | 23 | ||||
-rwxr-xr-x | Build/source/libs/poppler/configure | 4 | ||||
-rw-r--r-- | Build/source/libs/poppler/configure.ac | 3 | ||||
-rw-r--r-- | Build/source/libs/poppler/fofi/Makefile.in | 1 | ||||
-rw-r--r-- | Build/source/libs/poppler/goo/Makefile.in | 1 | ||||
-rw-r--r-- | Build/source/libs/poppler/poppler/Makefile.in | 1 |
8 files changed, 31 insertions, 22 deletions
diff --git a/Build/source/libs/poppler/ChangeLog b/Build/source/libs/poppler/ChangeLog index 38f011fd39f..f1168ff8f7d 100644 --- a/Build/source/libs/poppler/ChangeLog +++ b/Build/source/libs/poppler/ChangeLog @@ -1,3 +1,18 @@ +2011-04-23 Peter Breitenlohner <peb@mppmu.mpg.de> + + * Makefile.am (goo_libGoo_a_sources): Omit PNGWriter.cc. + +2011-04-23 Peter Breitenlohner <peb@mppmu.mpg.de> + + Suppress "deprecated conversion from string constant to 'char*'" + warnings from g++-4.4. + Unfortunately poppler declares lots of function parameters as + 'char *' that should actually be 'const char *'. + Compiling with the g++-4.4 default '-Wwrite-strings' would yield + >10000 such warnings. + + * Makefile.am, configure.ac: Define and use NO_WARN_CXXFLAGS. + 2011-04-14 Peter Breitenlohner <peb@mppmu.mpg.de> * Makefile.am, ac/poppler.ac, ac/withenable.ac, configure.ac: diff --git a/Build/source/libs/poppler/Makefile.am b/Build/source/libs/poppler/Makefile.am index 9d443e43dee..6cb693975e9 100644 --- a/Build/source/libs/poppler/Makefile.am +++ b/Build/source/libs/poppler/Makefile.am @@ -33,6 +33,7 @@ POPPLER_SRC = $(top_srcdir)/$(POPPLER_TREE)/poppler INCLUDES = -Igoo -Ifofi -Ipoppler -I$(GOO_SRC) -I$(FOFI_SRC) -I$(POPPLER_SRC) $(ZLIB_INCLUDES) AM_CPPFLAGS = -DPDF_PARSER_ONLY -DPOPPLER_DATADIR='"."' AM_CFLAGS = $(WARNING_CFLAGS) +AM_CXXFLAGS = $(NO_WARN_CXXFLAGS) noinst_LIBRARIES = libpoppler.a @@ -50,9 +51,7 @@ goo_libGoo_a_sources = \ $(GOO_SRC)/GooList.cc \ $(GOO_SRC)/GooString.cc \ $(GOO_SRC)/GooTimer.cc \ - $(GOO_SRC)/gstrtod.cc \ - $(GOO_SRC)/PNGWriter.cc - + $(GOO_SRC)/gstrtod.cc fofi_libfofi_a_sources = \ $(FOFI_SRC)/FoFiBase.cc \ diff --git a/Build/source/libs/poppler/Makefile.in b/Build/source/libs/poppler/Makefile.in index 6b61a22dafb..43406459036 100644 --- a/Build/source/libs/poppler/Makefile.in +++ b/Build/source/libs/poppler/Makefile.in @@ -62,8 +62,7 @@ libpoppler_a_AR = $(AR) $(ARFLAGS) libpoppler_a_LIBADD = am__objects_1 = FixedPoint.$(OBJEXT) gfile.$(OBJEXT) gmem.$(OBJEXT) \ gmempp.$(OBJEXT) GooHash.$(OBJEXT) GooList.$(OBJEXT) \ - GooString.$(OBJEXT) GooTimer.$(OBJEXT) gstrtod.$(OBJEXT) \ - PNGWriter.$(OBJEXT) + GooString.$(OBJEXT) GooTimer.$(OBJEXT) gstrtod.$(OBJEXT) am__objects_2 = FoFiBase.$(OBJEXT) FoFiEncodings.$(OBJEXT) \ FoFiTrueType.$(OBJEXT) FoFiType1.$(OBJEXT) \ FoFiType1C.$(OBJEXT) @@ -188,6 +187,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ +NO_WARN_CXXFLAGS = @NO_WARN_CXXFLAGS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ @@ -260,6 +260,7 @@ POPPLER_SRC = $(top_srcdir)/$(POPPLER_TREE)/poppler INCLUDES = -Igoo -Ifofi -Ipoppler -I$(GOO_SRC) -I$(FOFI_SRC) -I$(POPPLER_SRC) $(ZLIB_INCLUDES) AM_CPPFLAGS = -DPDF_PARSER_ONLY -DPOPPLER_DATADIR='"."' AM_CFLAGS = $(WARNING_CFLAGS) +AM_CXXFLAGS = $(NO_WARN_CXXFLAGS) noinst_LIBRARIES = libpoppler.a nodist_libpoppler_a_SOURCES = \ $(goo_libGoo_a_sources) \ @@ -275,8 +276,7 @@ goo_libGoo_a_sources = \ $(GOO_SRC)/GooList.cc \ $(GOO_SRC)/GooString.cc \ $(GOO_SRC)/GooTimer.cc \ - $(GOO_SRC)/gstrtod.cc \ - $(GOO_SRC)/PNGWriter.cc + $(GOO_SRC)/gstrtod.cc fofi_libfofi_a_sources = \ $(FOFI_SRC)/FoFiBase.cc \ @@ -452,7 +452,6 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/OutputDev.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/PDFDoc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/PDFDocEncoding.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/PNGWriter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/PSOutputDev.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/PSTokenizer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Page.Po@am__quote@ @@ -614,20 +613,6 @@ gstrtod.obj: $(GOO_SRC)/gstrtod.cc @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o gstrtod.obj `if test -f '$(GOO_SRC)/gstrtod.cc'; then $(CYGPATH_W) '$(GOO_SRC)/gstrtod.cc'; else $(CYGPATH_W) '$(srcdir)/$(GOO_SRC)/gstrtod.cc'; fi` -PNGWriter.o: $(GOO_SRC)/PNGWriter.cc -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT PNGWriter.o -MD -MP -MF $(DEPDIR)/PNGWriter.Tpo -c -o PNGWriter.o `test -f '$(GOO_SRC)/PNGWriter.cc' || echo '$(srcdir)/'`$(GOO_SRC)/PNGWriter.cc -@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/PNGWriter.Tpo $(DEPDIR)/PNGWriter.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(GOO_SRC)/PNGWriter.cc' object='PNGWriter.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o PNGWriter.o `test -f '$(GOO_SRC)/PNGWriter.cc' || echo '$(srcdir)/'`$(GOO_SRC)/PNGWriter.cc - -PNGWriter.obj: $(GOO_SRC)/PNGWriter.cc -@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT PNGWriter.obj -MD -MP -MF $(DEPDIR)/PNGWriter.Tpo -c -o PNGWriter.obj `if test -f '$(GOO_SRC)/PNGWriter.cc'; then $(CYGPATH_W) '$(GOO_SRC)/PNGWriter.cc'; else $(CYGPATH_W) '$(srcdir)/$(GOO_SRC)/PNGWriter.cc'; fi` -@am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/PNGWriter.Tpo $(DEPDIR)/PNGWriter.Po -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$(GOO_SRC)/PNGWriter.cc' object='PNGWriter.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o PNGWriter.obj `if test -f '$(GOO_SRC)/PNGWriter.cc'; then $(CYGPATH_W) '$(GOO_SRC)/PNGWriter.cc'; else $(CYGPATH_W) '$(srcdir)/$(GOO_SRC)/PNGWriter.cc'; fi` - FoFiBase.o: $(FOFI_SRC)/FoFiBase.cc @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT FoFiBase.o -MD -MP -MF $(DEPDIR)/FoFiBase.Tpo -c -o FoFiBase.o `test -f '$(FOFI_SRC)/FoFiBase.cc' || echo '$(srcdir)/'`$(FOFI_SRC)/FoFiBase.cc @am__fastdepCXX_TRUE@ $(am__mv) $(DEPDIR)/FoFiBase.Tpo $(DEPDIR)/FoFiBase.Po diff --git a/Build/source/libs/poppler/configure b/Build/source/libs/poppler/configure index 4a634bb3564..ff66c944ef5 100755 --- a/Build/source/libs/poppler/configure +++ b/Build/source/libs/poppler/configure @@ -616,6 +616,7 @@ ZLIB_INCLUDES EGREP GREP CPP +NO_WARN_CXXFLAGS WARNING_CXXFLAGS WARNING_CFLAGS LN_S @@ -4298,6 +4299,9 @@ WARNING_CXXFLAGS=$kpse_cv_warning_cxxflags +test "x$GXX" = xyes && NO_WARN_CXXFLAGS='-Wno-write-strings' + + # Check whether --enable-opi was given. if test "${enable_opi+set}" = set; then : enableval=$enable_opi; if test "x$enableval" = xyes; then diff --git a/Build/source/libs/poppler/configure.ac b/Build/source/libs/poppler/configure.ac index 97ca571d36b..ef9b9b2f4ff 100644 --- a/Build/source/libs/poppler/configure.ac +++ b/Build/source/libs/poppler/configure.ac @@ -23,6 +23,9 @@ AC_PROG_LN_S KPSE_COMPILER_WARNINGS +test "x$GXX" = xyes && NO_WARN_CXXFLAGS='-Wno-write-strings' +AC_SUBST([NO_WARN_CXXFLAGS]) + dnl ##### Optional features. AC_ARG_ENABLE([opi], AS_HELP_STRING([--enable-opi], diff --git a/Build/source/libs/poppler/fofi/Makefile.in b/Build/source/libs/poppler/fofi/Makefile.in index e754eeeb9aa..aa868da467c 100644 --- a/Build/source/libs/poppler/fofi/Makefile.in +++ b/Build/source/libs/poppler/fofi/Makefile.in @@ -85,6 +85,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ +NO_WARN_CXXFLAGS = @NO_WARN_CXXFLAGS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ diff --git a/Build/source/libs/poppler/goo/Makefile.in b/Build/source/libs/poppler/goo/Makefile.in index aa0f1acaec6..8c7ebb55f6b 100644 --- a/Build/source/libs/poppler/goo/Makefile.in +++ b/Build/source/libs/poppler/goo/Makefile.in @@ -85,6 +85,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ +NO_WARN_CXXFLAGS = @NO_WARN_CXXFLAGS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ diff --git a/Build/source/libs/poppler/poppler/Makefile.in b/Build/source/libs/poppler/poppler/Makefile.in index 79b25790077..fa9a540f86c 100644 --- a/Build/source/libs/poppler/poppler/Makefile.in +++ b/Build/source/libs/poppler/poppler/Makefile.in @@ -85,6 +85,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ +NO_WARN_CXXFLAGS = @NO_WARN_CXXFLAGS@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |