From 6bc6905502be4f169f94777348a441051792f627 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Wed, 16 Sep 2026 01:05:49 +0200 Subject: [PATCH] Fix implicit declaraion in ddc/ddc_displays.c: libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/libdrm -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../src -I../../src/public -Wall -std=c11 -Werror=unused-result -Wformat-security -fno-common -Wimplicit-function-declaration -Wno-compound-token-split-by-macro -Wimplicit-fallthrough -D_GLIBCXX_ASSERTIONS -Werror=implicit -Werror=incompatible-pointer-types -Werror=int-conversion -fPIC -D_GNU_SOURCE -march=native -mtune=native -O2 -pipe -c ddc_displays.c -fPIC -DPIC -o .libs/ddc_displays.o ddc_displays.c: In function 'ddc_discard_detected_displays': ddc_displays.c:699:4: error: implicit declaration of function 'reset_display_locks_table' [-Wimplicit-function-declaration] 699 | reset_display_locks_table(); | ^~~~~~~~~~~~~~~~~~~~~~~~~ At top level: cc1: note: unrecognized command-line option '-Wno-compound-token-split-by-macro' may have been intended to silence earlier diagnostics make[3]: *** [Makefile:518: ddc_displays.lo] Error 1 --- src/ddc/ddc_displays.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ddc/ddc_displays.c b/src/ddc/ddc_displays.c index 2707de777..70d31b5a2 100644 --- a/src/ddc/ddc_displays.c +++ b/src/ddc/ddc_displays.c @@ -46,6 +46,7 @@ #include "base/core.h" #include "base/ddc_packets.h" +#include "base/display_lock.h" #include "base/dsa2.h" #include "base/feature_metadata.h" #include "base/linux_errno.h" -- 2.55.0