From b1fc5d9143661af4f7a8bea1dd6f611baa7801ca Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 26 Dec 2019 10:23:42 +0100 Subject: [PATCH] LibC: Oops, we can't use [[nodiscard]] when this is included from C --- Libraries/LibC/stdlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibC/stdlib.h b/Libraries/LibC/stdlib.h index a4cb21a4104..7bd91960d0a 100644 --- a/Libraries/LibC/stdlib.h +++ b/Libraries/LibC/stdlib.h @@ -4,7 +4,7 @@ #include #include -[[nodiscard]] bool __generate_unique_filename(char* pattern); +__attribute__((warn_unused_result)) bool __generate_unique_filename(char* pattern); __BEGIN_DECLS