mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-17 18:12:04 +01:00
minor tweaks to silence gcc warnings
This commit is contained in:
parent
5b5cb43696
commit
01d697c3f6
4 changed files with 17 additions and 16 deletions
|
@ -1,7 +1,7 @@
|
|||
####################################
|
||||
# ARABICA CONFIG
|
||||
# edit for your parser choice - may include more than one USE_*
|
||||
PARSER_CONFIG = -DUSE_LIBXML2 -DARABICA_NO_WCHAR_T
|
||||
PARSER_CONFIG = -DUSE_GARDEN
|
||||
#PARSER_CONFIG = -DUSE_EXPAT -DUSE_LIBXML2 -DUSE_XERCES -DUSE_GARDEN
|
||||
|
||||
####################################
|
||||
|
@ -9,16 +9,12 @@ PARSER_CONFIG = -DUSE_LIBXML2 -DARABICA_NO_WCHAR_T
|
|||
#####
|
||||
MAKE = make
|
||||
# C++ compiler
|
||||
#CXX = /home/jez/gcc-3.4.2/bin/gcc
|
||||
CXX = gcc
|
||||
# preprocessor
|
||||
#CPP = /home/jez/gcc-3.4.2/bin/gcc -E
|
||||
CPP = gcc -E
|
||||
# linker
|
||||
#LD = /home/jez/gcc-3.4.2/bin/gcc
|
||||
LD = gcc
|
||||
LD = gcc
|
||||
# archiver
|
||||
#AR = /home/jez/gcc-3.4.2/bin/ar r
|
||||
AR = ar r
|
||||
|
||||
###########
|
||||
|
@ -33,23 +29,21 @@ COPY = cp -f
|
|||
# your parser choice
|
||||
# eg DYNAMIC_LIBS = -lexpat
|
||||
|
||||
CXXFLAGS = -Wall -g
|
||||
CXXFLAGS = -Wall
|
||||
LDFLAGS =
|
||||
|
||||
# Includes and library directories
|
||||
#INCS_DIRS = -I.. -I/home/jez/gcc-3.4.2/include -I/usr/include/libxml2
|
||||
INCS_DIRS = -I.. -I/usr/include/libxml2 -I/usr/local/include
|
||||
#LIBS_DIRS = -I/home/jez/gcc-3.4.2/lib
|
||||
LIBS_DIRS =
|
||||
INCS_DIRS = -I..
|
||||
LIBS_DIRS =
|
||||
|
||||
STATIC_LIBS =
|
||||
DYNAMIC_LIBS = -lxml2 -lstdc++
|
||||
DYNAMIC_LIBS = -lstdc++
|
||||
|
||||
# link flag to create a shared library
|
||||
# flag to create a shared library
|
||||
LINK_SHARED = -shared
|
||||
|
||||
EXESUFFIX = .exe
|
||||
LIBSUFFIX = .dll
|
||||
EXESUFFIX =
|
||||
LIBSUFFIX = .so
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -51,7 +51,9 @@ comment(lib, "xerces-c_2.lib")
|
|||
#endif
|
||||
#endif
|
||||
#ifdef USE_GARDEN
|
||||
#ifdef _MSC_VER
|
||||
message("Including Garden")
|
||||
#endif
|
||||
include <SAX/parsers/saxgarden.h>
|
||||
undef DEF_SAX_P
|
||||
define DEF_SAX_P Garden
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include <vector>
|
||||
#include <string>
|
||||
#include <stack>
|
||||
#include <map>
|
||||
#include <SAX/XMLReader.h>
|
||||
#include <SAX/SAXParseException.h>
|
||||
#include <SAX/SAXNotRecognizedException.h>
|
||||
|
@ -375,7 +376,9 @@ void Garden<string_type>::entityRef(iterator_t s, iterator_t e)
|
|||
{
|
||||
stringT name(str(s, e, 1));
|
||||
|
||||
std::map<stringT, stringT>::iterator ent = declaredEntities_.find(name);
|
||||
typedef typename std::map<stringT, stringT>::iterator entity_iterator;
|
||||
|
||||
entity_iterator ent = declaredEntities_.find(name);
|
||||
if(ent != declaredEntities_.end())
|
||||
{
|
||||
contentHandler_->characters((*ent).second);
|
||||
|
|
|
@ -41,8 +41,10 @@ message("Pulling in Xerces wrappers.")
|
|||
#endif
|
||||
|
||||
#ifdef USE_GARDEN
|
||||
#ifdef _MSC_VER
|
||||
message("Nothing to pull in for Garden.")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef USE_EXPAT
|
||||
include <SAX/wrappers/saxexpat.cpp>
|
||||
|
|
Loading…
Reference in a new issue