mbox series

[0/1] Makefile: Temporarily suppress -Werror=unused-result

Message ID 20250618201738.635735-1-yphbchou0911@gmail.com
Headers show
Series Makefile: Temporarily suppress -Werror=unused-result | expand

Message

Cheng-Yang Chou June 18, 2025, 8:17 p.m. UTC
This patch adds -Wno-error=unused-result to the Makefile to allow rt-tests
to build on glibc >= 2.41, where functions like write(), system(), and
ftruncate() are annotated with warn_unused_result. The build currently
fails due to these ignored return values being treated as fatal errors
under -Werror.

This change serves as a temporary workaround. A follow-up patch will
address proper error checking at each affected call site.

Thanks.

-chengyang

---

Cheng-Yang Chou (1):
  Makefile: Use -Wno-error=unused-result

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)