Open winterwolf45 opened 2 years ago
hi thanks for write this project when i trying build version 1.6.3 after write this command ninja -C build i have this error:
FAILED: swaylock.p/main.c.o gcc -Iswaylock.p -I. -I.. -Iinclude -I../include -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O0 -Wno-unused-parameter -Wno-unused-result -Wundef -Wvla -fopenmp -mtune=native '-DSYSCONFDIR="//etc"' '-DSWAYLOCK_VERSION="1.6-3"' -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pthread -MD -MQ swaylock.p/main.c.o -MF swaylock.p/main.c.o.d -o swaylock.p/main.c.o -c ../main.c In function ‘load_config’, inlined from ‘main’ at ../main.c:1771:23: ../main.c:1670:25: error: ‘free’ called on pointer returned from a mismatched allocation function [-Werror=mismatched-dealloc] 1670 | free(config); | ^~~~~~~~~~~~ ../main.c:1645:24: note: returned from ‘*fopen64’ 1645 | FILE *config = fopen(path, "r"); | ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
hi thanks for write this project when i trying build version 1.6.3 after write this command ninja -C build i have this error: