LibC: Oops, we can't use [[nodiscard]] when this is included from C

This commit is contained in:
Andreas Kling 2019-12-26 10:23:42 +01:00
parent 22776589f0
commit b1fc5d9143
Notes: sideshowbarker 2024-07-19 10:39:31 +09:00

View file

@ -4,7 +4,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#include <sys/types.h> #include <sys/types.h>
[[nodiscard]] bool __generate_unique_filename(char* pattern); __attribute__((warn_unused_result)) bool __generate_unique_filename(char* pattern);
__BEGIN_DECLS __BEGIN_DECLS