[poppler] poppler/GlobalParams.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Dec 8 09:06:15 PST 2012


 poppler/GlobalParams.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 787a8438708397f0a1bf26e93726f544c91533e6
Author: Hib Eris <hib at hiberis.nl>
Date:   Sun Dec 2 08:03:10 2012 +0100

    Fix compile warning on deprecated conversion from string constant
    
    Fixes (for win32):
    
      CXX    GlobalParams.lo
    GlobalParams.cc: In function 'char* get_poppler_datadir()':
    GlobalParams.cc:181:12: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

diff --git a/poppler/GlobalParams.cc b/poppler/GlobalParams.cc
index 098e4a4..02b9332 100644
--- a/poppler/GlobalParams.cc
+++ b/poppler/GlobalParams.cc
@@ -166,7 +166,7 @@ DllMain (HINSTANCE hinstDLL,
 }
 }
 
-static char *
+static const char *
 get_poppler_datadir (void)
 {
   static char retval[MAX_PATH];


More information about the poppler mailing list