Skip to content

Commit bfaa73a

Browse files
committed
Display (Linux): clean up
1 parent 373e288 commit bfaa73a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/detection/displayserver/linux/wayland/kde-output.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,7 @@ static void waylandKdeNameListener(void* data, FF_MAYBE_UNUSED struct kde_output
126126
WaylandDisplay* display = data;
127127
display->type = ffdsGetDisplayType(name);
128128
// As display->id is used as an internal identifier, we don't need it to be NUL terminated
129-
#pragma GCC diagnostic push
130-
#pragma GCC diagnostic ignored "-Wstringop-truncation"
131129
strncpy((char*) &display->id, name, sizeof(display->id));
132-
#pragma GCC diagnostic pop
133130

134131
ffStrbufAppendS(&display->name, name);
135132
}

0 commit comments

Comments
 (0)