From bfaa73a2c7a9ba0bf5a9ac7645f56d0f368baf46 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 14 Dec 2024 00:05:28 +0800 Subject: [PATCH] Display (Linux): clean up --- src/detection/displayserver/linux/wayland/kde-output.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/detection/displayserver/linux/wayland/kde-output.c b/src/detection/displayserver/linux/wayland/kde-output.c index 6644880e0..a47548ea4 100644 --- a/src/detection/displayserver/linux/wayland/kde-output.c +++ b/src/detection/displayserver/linux/wayland/kde-output.c @@ -126,10 +126,7 @@ static void waylandKdeNameListener(void* data, FF_MAYBE_UNUSED struct kde_output WaylandDisplay* display = data; display->type = ffdsGetDisplayType(name); // As display->id is used as an internal identifier, we don't need it to be NUL terminated - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstringop-truncation" strncpy((char*) &display->id, name, sizeof(display->id)); - #pragma GCC diagnostic pop ffStrbufAppendS(&display->name, name); }