Skip to content

Makefile: Temporarily suppress -Werror=unused-result

Cheng-Yang Chou linux-rt-users 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1Makefile: Use -Wno-error=unused-resultMakefile+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.48.1