Skip to content

Commit

Permalink
Meson warnings fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaryob committed Apr 6, 2024
1 parent 0b3024c commit 635146f
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ src/iksemel.egg-info/dependency_links.txt
src/iksemel.egg-info/SOURCES.txt
src/iksemel.egg-info/PKG-INFO
src/iksemel.egg-info/top_level.txt

*.patch

# VSCode
.vscode/
2 changes: 1 addition & 1 deletion include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ extern int errno;

#include "finetune.h"

#endif // __COMMON_H
#endif // __COMMON_H
2 changes: 1 addition & 1 deletion include/iksemel.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ enum ikserror {
};

enum ikstagtype {
IKS_OPEN,
IKS_OPEN = 0,
IKS_CLOSE,
IKS_SINGLE
};
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pkgconf.set('VERSION', version)

pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))

configure_file(input : 'iksemel.pc.in'.format(version),
configure_file(input : 'iksemel.pc.in',
output : 'iksemel-@[email protected]'.format(version),
configuration : pkgconf,
install_dir : pkg_install_dir)
4 changes: 2 additions & 2 deletions src/iks.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,8 @@ static char *
escape (char *dest, char *src, size_t len)
{
char c;
int i;
int j = 0;
size_t i;
size_t j = 0;

for (i = 0; i < len; i++) {
c = src[i];
Expand Down
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if backends.length() != 0

pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))

configure_file(input : 'jabber.pc.in'.format(version),
configure_file(input : 'jabber.pc.in',
output : 'jabber-@[email protected]'.format(version),
configuration : jabber_pkgconf,
install_dir : pkg_install_dir)
Expand Down
2 changes: 1 addition & 1 deletion src/sax.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ stack_expand (iksparser *prs, int len)
prs->stack_max = need;
prs->tag_name += diff;
if (prs->attflag != 0) {
int i = 0;
unsigned int i = 0;
while (i < (prs->attmax * 2)) {
if (prs->atts[i]) prs->atts[i] += diff;
i++;
Expand Down
4 changes: 2 additions & 2 deletions src/utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ char *
iks_escape (ikstack *s, char *src, size_t len)
{
char *ret;
int i, j, nlen;
size_t i, j, nlen;

if (!src || !s) return NULL;
if (len == -1) len = strlen (src);
Expand Down Expand Up @@ -138,7 +138,7 @@ iks_escape (ikstack *s, char *src, size_t len)
char *
iks_unescape (ikstack *s, char *src, size_t len)
{
int i,j;
size_t i,j;
char *ret;

if (!s || !src) return NULL;
Expand Down
4 changes: 2 additions & 2 deletions test/tst-sax.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ tagHook (void *udata, char *name, char **atts, int type)

if (!tester.cur) TAG_FAIL;
if (tester.cur->type != IKS_TAG) TAG_FAIL;
if (tester.cur->tag != type) TAG_FAIL;
if ((int)tester.cur->tag != type) TAG_FAIL;
if (iks_strcmp (tester.cur->name, name) != 0) TAG_FAIL;
if (!atts && tester.cur->nr_atts > 0) TAG_FAIL;
if (atts && tester.cur->nr_atts == 0) TAG_FAIL;
Expand All @@ -177,7 +177,7 @@ tagHook (void *udata, char *name, char **atts, int type)
void
debug_cdata (char *data, size_t len, int pos)
{
int i;
size_t i;

PRINT_TEST;
if (tester.cur && tester.cur->type == IKS_CDATA)
Expand Down

0 comments on commit 635146f

Please sign in to comment.