diff options
Diffstat (limited to 'src/mongo/platform/compiler.h')
-rw-r--r-- | src/mongo/platform/compiler.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/platform/compiler.h b/src/mongo/platform/compiler.h index af3e0b20dc3..713cb11379d 100644 --- a/src/mongo/platform/compiler.h +++ b/src/mongo/platform/compiler.h @@ -150,6 +150,13 @@ * Tells the compiler that a class defines a type for which checking results is necessary. Types * thus defined turn functions returning them into "must check results" style functions. Preview * of the `[[nodiscard]]` C++17 attribute. + * + * + * MONGO_WARN_UNUSED_RESULT_FUNCTION + * + * Tells the compiler that a function returns a value for which consuming the result is + * necessary. Functions thus defined are "must check results" style functions. Preview of the + * `[[nodiscard]]` C++17 attribute. */ |