Skip to content

Commit 4e174c7

Browse files
committed
supress warnings
1 parent 3f0bcf7 commit 4e174c7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

include/xml/impl/impl_parse.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ xml_parse(const char * __restrict contents, xml_options_t options) {
9393
if (p[1] != '\0' && p[1] == '-' && p[2] == '-') {
9494
p = p + 2;
9595
c = *p;
96-
c1 = c2 = '\0';
96+
c2 = '\0';
9797

9898
do {
9999
if (c == '\0')
@@ -112,7 +112,7 @@ xml_parse(const char * __restrict contents, xml_options_t options) {
112112
else if (p[1] != '\0' && p[1] == '[') {
113113
p = p + 2;
114114
c = *p;
115-
c1 = c2 = '\0';
115+
c2 = '\0';
116116

117117
do {
118118
if (c == '\0')

include/xml/util.h

-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ xml_tag_eqsz(const xml_t * __restrict obj,
283283
*
284284
* @param[in] obj xml element
285285
* @param[in] str string to compare
286-
* @param[in] strsize size of string to compare
287286
* @return a number like strncmp returns
288287
*/
289288
XML_INLINE

0 commit comments

Comments
 (0)