Skip to content

Commit d5de834

Browse files
committed
CDRIVER-820: error: #pragma GCC diagnostic not allowed inside functions
And remove the unhelpful (debug) assert that cause two tickets so far
1 parent b4ce3e0 commit d5de834

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/mongoc/mongoc-matcher-op.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,6 @@ _mongoc_matcher_op_compare_new (mongoc_matcher_opcode_t opcode, /* IN */
162162
{
163163
mongoc_matcher_op_t *op;
164164

165-
#if defined(__GNUC__)
166-
# pragma GCC diagnostic push
167-
# pragma GCC diagnostic ignored "-Wtype-limits"
168-
#endif
169-
BSON_ASSERT ((opcode >= MONGOC_MATCHER_OPCODE_EQ) &&
170-
(opcode <= MONGOC_MATCHER_OPCODE_NIN));
171-
#if defined(__GNUC__)
172-
# pragma GCC diagnostic pop
173-
#endif
174165
BSON_ASSERT (path);
175166
BSON_ASSERT (iter);
176167

0 commit comments

Comments
 (0)