Skip to content

changes assignment to equality check #744

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 8, 2021
Merged

Conversation

bazile-clyde
Copy link
Contributor

removes redefinition of mongoc_timeout_t.

@bazile-clyde bazile-clyde merged commit 2fd2042 into mongodb:master Mar 8, 2021
@bazile-clyde bazile-clyde deleted the fix branch March 8, 2021 18:07
@@ -20,7 +20,7 @@
typedef struct _mongoc_timeout_t {
bool is_set;
int64_t timeout_ms;
} mongoc_timeout_t;
};
Copy link
Member

Choose a reason for hiding this comment

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

This change produces a build failure for me on MacOS:

[ 43%] Building C object src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-topology.c.o
/Users/alcaeus/Code/mongodb/mongo-c-driver/src/libmongoc/src/mongoc/mongoc-timeout.c:20:1: error: typedef requires a name [-Werror,-Wmissing-declarations]
typedef struct _mongoc_timeout_t {
^~~~~~~
1 error generated.
make[2]: *** [src/libmongoc/CMakeFiles/mongoc_shared.dir/src/mongoc/mongoc-timeout.c.o] Error 1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Submitted a PR for this here: #746. Can you confirm it works locally?

Copy link
Member

Choose a reason for hiding this comment

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

Approved the PR after confirming it works. Thanks for the quick turnaround!

chardan pushed a commit to chardan/mongo-c-driver that referenced this pull request Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants