From 6154d54d35fc608a431c1876fb912310bfab6ad9 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Fri, 10 Oct 2025 09:43:32 +0200 Subject: [PATCH] fix compare issue --- CMakeLists.txt | 4 ++-- src/xml.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b22c3e5..90cd150 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,9 +3,9 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.25.1) SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING "build type") IF(${CMAKE_BUILD_TYPE} STREQUAL "Debug") - SET(CMAKE_C_FLAGS "-std=gnu99 -Wall -g -fsanitize=address") + SET(CMAKE_C_FLAGS "-std=gnu99 -Wall -Wextra -pedantic -g -fsanitize=address") else() - SET(CMAKE_C_FLAGS "-std=gnu99 -Werror") + SET(CMAKE_C_FLAGS "-std=gnu99 -Werror -Wextra -pedantic") ENDIF() MESSAGE(STATUS "CMAKE_C_FLAGS: ${CMAKE_C_FLAGS}") diff --git a/src/xml.c b/src/xml.c index 946208a..54f8656 100644 --- a/src/xml.c +++ b/src/xml.c @@ -512,7 +512,7 @@ void merge(const char* dir) xmlFreeTextReader(xmlreader); xmlreader = NULL; - for (int i = 0; i < files->gl_pathc; i++) { + for (size_t i = 0; i < files->gl_pathc; i++) { xmlreader = xmlReaderForFile(files->gl_pathv[i], "UTF-8", 0); while (xmlTextReaderRead(xmlreader) == 1) { copyEntry(xmlreader, xmlwriter); -- 2.47.3