]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
fix compare issue
authorBastian Dehn <hhaalo@arcor.de>
Fri, 10 Oct 2025 07:43:32 +0000 (09:43 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 10 Oct 2025 07:43:32 +0000 (09:43 +0200)
CMakeLists.txt
src/xml.c

index b22c3e5a2cf74f77b8891adbac0b014060ab929a..90cd150179e05ff3e7f605ebd2d4e7f3a8d5d82c 100644 (file)
@@ -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}")
index 946208a3ec43c56ba3b3735fec6534b50ed4a3f5..54f865639ac59e1fb625f202cbb4e87fcb908349 100644 (file)
--- 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);