Skip to content

Commit a8875d2

Browse files
bjoriajdavis
authored andcommitted
CDRIVER-1421 zSeries unused function error
1 parent c60d1e3 commit a8875d2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.evergreen/compile-unix.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ case "$MARCH" in
122122
CFLAGS="$CFLAGS -Werror"
123123
fi
124124
;;
125+
s390x)
126+
CFLAGS="$CFLAGS -march=z196 -mtune=zEC12"
127+
;;
125128
x86_64)
126129
CFLAGS="$CFLAGS -m64 -march=x86-64"
127130
if [ "$CC" = "gcc" ]; then

src/mongoc/mongoc-rpc.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
#include "op-msg.def"
166166
#include "op-query.def"
167167
#include "op-reply.def"
168-
#include "op-reply-header.def"
168+
/* Don't process generate _mongoc_rpc_swab_to_le_reply_header from op-reply-header.def */
169169
#include "op-update.def"
170170

171171
#undef RPC
@@ -195,12 +195,9 @@
195195
#include "op-msg.def"
196196
#include "op-query.def"
197197
#include "op-reply.def"
198+
/* Don't process generate _mongoc_rpc_swab_from_le_reply_header from op-reply-header.def */
198199
#include "op-update.def"
199200

200-
/* don't process op-reply-header.def, don't need to generate
201-
_mongoc_rpc_swab_to_le_head_only / _mongoc_rpc_swab_from_le_head_only
202-
*/
203-
204201
#undef RPC
205202
#undef ENUM_FIELD
206203
#undef INT32_FIELD

0 commit comments

Comments
 (0)