Skip to content

Conversation

@eramongodb
Copy link
Contributor

All functions declared with MONGOC_EXPORT were examined in this pass.

Any exported functions whose return value which the C driver documentation described as "newly allocated" or "should be freed" were given the BSON_GNUC_WARN_UNUSED_RESULT attribute. If there was not a documentation page corresponding to the function, or if the documentation did not describe how the result should be handled, the definition was examined for the presence of any calls to a *_new()-like, *_malloc()-like, *_copy(), or *_clone()-like functions as an indicator instead.

No additional warnings appear to have been generated relative to base commit (583213d) as a result of these changes when building the C driver. Yay for no (obvious) leaks!🎉

Code formatting was also applied to all modified files. These formatting changes can be reverted if deemed unnecessary.

@eramongodb eramongodb self-assigned this Aug 27, 2021
Copy link
Contributor

@rcsanchez97 rcsanchez97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@eramongodb eramongodb requested a review from kevinAlbs August 30, 2021 15:09
Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@eramongodb eramongodb merged commit 5258e23 into mongodb:master Aug 30, 2021
@eramongodb eramongodb deleted the cdriver-3320 branch August 30, 2021 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants