Skip to content

Commit

Permalink
another patch from Malcolm Tredinnick fixing warning generated by the
Browse files Browse the repository at this point in the history
* acconfig.h config.h.in configure.in xmlIO.c xmlregexp.c xmlschemas.c
  xmlschemastypes.c: another patch from Malcolm Tredinnick fixing
  warning generated by the Nonstop Kernel Open System Services
  compiler #151710
Daniel
  • Loading branch information
Daniel Veillard committed Sep 28, 2004
1 parent a81355e commit c7e3cc4
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 14 deletions.
9 changes: 8 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
Tue Sep 28 13:07:37 CEST 2004 Daniel Veillard <daniel@veillard.com
Tue Sep 28 14:30:22 CEST 2004 Daniel Veillard <daniel@veillard.com>

* acconfig.h config.h.in configure.in xmlIO.c xmlregexp.c xmlschemas.c
xmlschemastypes.c: another patch from Malcolm Tredinnick fixing
warning generated by the Nonstop Kernel Open System Services
compiler #151710

Tue Sep 28 13:07:37 CEST 2004 Daniel Veillard <daniel@veillard.com>

* python/libxml.py: applied patch from Malcolm Tredinnick fixing
python exception hierarchy #139824
Expand Down
1 change: 0 additions & 1 deletion acconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#undef HAVE_ISNAN
#undef HAVE_LIBHISTORY
#undef HAVE_LIBREADLINE
#undef SOCKLEN_T
#undef HAVE_LIBPTHREAD
#undef HAVE_PTHREAD_H

Expand Down
6 changes: 4 additions & 2 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#undef HAVE_ISNAN
#undef HAVE_LIBHISTORY
#undef HAVE_LIBREADLINE
#undef SOCKLEN_T
#undef HAVE_LIBPTHREAD
#undef HAVE_PTHREAD_H

Expand Down Expand Up @@ -256,7 +255,7 @@
/* Define to the version of this package. */
#undef PACKAGE_VERSION

/* Define if compiler has function prototypes */
/* Define to 1 if the C compiler supports function prototypes. */
#undef PROTOTYPES

/* Determine what socket length (socklen_t) data type is */
Expand All @@ -274,6 +273,9 @@
/* Using the Win32 Socket implementation */
#undef _WINSOCKAPI_

/* Define like PROTOTYPES; this can be used by system headers. */
#undef __PROTOTYPES

/* Win32 Std C name mangling work-around */
#undef snprintf

Expand Down
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ AC_TRY_COMPILE2([
AC_MSG_RESULT(int *)
SOCKLEN_T=int],[
AC_MSG_WARN(could not determine)
SOCKLEN_T="unsigned int"])])])
SOCKLEN_T="int"])])])
AC_DEFINE_UNQUOTED(SOCKLEN_T, $SOCKLEN_T, [Determine what socket length (socklen_t) data type is])

dnl ***********************Checking for availability of IPv6*******************
Expand Down
4 changes: 4 additions & 0 deletions xmlIO.c
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,9 @@ __xmlOutputBufferCreateFilename(const char *URI,
int i = 0;
void *context = NULL;
char *unescaped = NULL;
#ifdef HAVE_ZLIB_H
int is_file_uri = 1;
#endif

if (xmlOutputCallbackInitialized == 0)
xmlRegisterDefaultOutputCallbacks();
Expand All @@ -2228,7 +2230,9 @@ __xmlOutputBufferCreateFilename(const char *URI,
if (puri != NULL) {
if ((puri->scheme != NULL) &&
(!xmlStrEqual(BAD_CAST puri->scheme, BAD_CAST "file")))
#ifdef HAVE_ZLIB_H
is_file_uri = 0;
#endif
/*
* try to limit the damages of the URI unescaping code.
*/
Expand Down
5 changes: 1 addition & 4 deletions xmlregexp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4008,11 +4008,8 @@ xmlFAParseBranch(xmlRegParserCtxtPtr ctxt) {
*/
static void
xmlFAParseRegExp(xmlRegParserCtxtPtr ctxt, int top) {
xmlRegStatePtr start, end, oldend, oldstart;
xmlRegStatePtr start, end;

oldend = ctxt->end;

oldstart = ctxt->state;
/* if not top start should have been generated by an epsilon trans */
start = ctxt->state;
ctxt->end = NULL;
Expand Down
5 changes: 1 addition & 4 deletions xmlschemas.c
Original file line number Diff line number Diff line change
Expand Up @@ -12534,7 +12534,6 @@ xmlSchemaParse(xmlSchemaParserCtxtPtr ctxt)
xmlSchemaPtr ret = NULL;
xmlDocPtr doc;
xmlNodePtr root;
int nberrors;
int preserve = 0;

/*
Expand All @@ -12547,7 +12546,6 @@ xmlSchemaParse(xmlSchemaParserCtxtPtr ctxt)
if (ctxt == NULL)
return (NULL);

nberrors = ctxt->nberrors;
ctxt->nberrors = 0;
ctxt->counter = 0;
ctxt->container = NULL;
Expand Down Expand Up @@ -12895,7 +12893,7 @@ xmlSchemaValidateFacetsInternal(xmlSchemaValidCtxtPtr ctxt,
xmlSchemaTypePtr biType; /* The build-in type. */
xmlSchemaTypePtr tmpType;
xmlSchemaFacetLinkPtr facetLink;
int retFacet, hasFacet;
int retFacet;
xmlSchemaFacetPtr facet;
unsigned long len = 0;

Expand Down Expand Up @@ -12997,7 +12995,6 @@ xmlSchemaValidateFacetsInternal(xmlSchemaValidCtxtPtr ctxt,
* Process patters. Pattern facets are ORed at type level
* and ANDed if derived. Walk the base type axis.
*/
hasFacet = 0;
tmpType = type;
facet = NULL;
do {
Expand Down
2 changes: 1 addition & 1 deletion xmlschemastypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ xmlSchemaIsBuiltInTypeFacet(xmlSchemaTypePtr type, int facetType)
else
return (0);
default:
return (0);
break;
}
return (0);
}
Expand Down

0 comments on commit c7e3cc4

Please sign in to comment.