[CDRIVER-1421] zSeries on Ubuntu build failure - unused function warning on big-endian Created: 27/Jul/16  Updated: 27/Nov/16  Resolved: 15/Nov/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.6.0

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-1180 Test build on zSeries Closed

 Description   

https://evergreen.mongodb.com/task_log_raw/mongo_c_driver_zseries_ubuntu1604_debug_compile_sasl_nossl_4ea9bcd961df939b58a6e5db017a3fd13425a34a_16_07_27_00_51_01/0?type=T

 [2016/07/26 18:51:39.789] src/mongoc/mongoc-rpc.c:134:4: error: '_mongoc_rpc_swab_to_le_reply_header' defined but not used [-Werror=unused-function]
 [2016/07/26 18:51:39.790]     _mongoc_rpc_swab_to_le_##_name (mongoc_rpc_##_name##_t *rpc) \
 [2016/07/26 18:51:39.790]     ^
 [2016/07/26 18:51:39.790] src/mongoc/op-reply-header.def:1:1: note: in expansion of macro 'RPC'
 [2016/07/26 18:51:39.790]  RPC(
 [2016/07/26 18:51:39.790]  ^
 [2016/07/26 18:51:39.790] src/mongoc/mongoc-rpc.c:176:4: error: '_mongoc_rpc_swab_from_le_reply_header' defined but not used [-Werror=unused-function]
 [2016/07/26 18:51:39.790]     _mongoc_rpc_swab_from_le_##_name (mongoc_rpc_##_name##_t *rpc) \
 [2016/07/26 18:51:39.790]     ^
 [2016/07/26 18:51:39.790] src/mongoc/op-reply-header.def:1:1: note: in expansion of macro 'RPC'
 [2016/07/26 18:51:39.790]  RPC(
 [2016/07/26 18:51:39.790]  ^
 [2016/07/26 18:51:39.871] cc1: all warnings being treated as errors
 [2016/07/26 18:51:39.874] Makefile:3312: recipe for target 'src/mongoc/libmongoc_1_0_la-mongoc-rpc.lo' failed
 [2016/07/26 18:51:39.874] make[1]: Leaving directory '/data/mci/63897e39864a4ed2b4080dd560a73df5/mongoc'
 [2016/07/26 18:51:39.874] make[1]: *** [src/mongoc/libmongoc_1_0_la-mongoc-rpc.lo] Error 1
 [2016/07/26 18:51:39.875] make: *** [all-recursive] Error 1



 Comments   
Comment by Githook User [ 27/Nov/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1421 zSeries unused function error
Branch: r1.5
https://github.com/mongodb/mongo-c-driver/commit/a8875d27c38fe0573fa1ee37794cf8eed32a9343

Comment by Githook User [ 15/Nov/16 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@php.net'}

Message: CDRIVER-1421 zSeries unused function error
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/158b673995b78e095a0296e8db0f9701b7e837a7

Comment by Hannes Magnusson [ 11/Aug/16 ]

Doesn't look like that was sufficient:
https://evergreen.mongodb.com/task/mongo_c_driver_zseries_rhel72_debug_compile_0a1ed8f93c1a6a03c4cb042bd6cbc162cf3c14a5_16_08_11_22_24_49

 [2016/08/11 15:38:32.286] src/mongoc/mongoc-rpc.c:134:4: error: '_mongoc_rpc_swab_to_le_reply_header' defined but not used [-Werror=unused-function]
 [2016/08/11 15:38:32.286]     _mongoc_rpc_swab_to_le_##_name (mongoc_rpc_##_name##_t *rpc) \
 [2016/08/11 15:38:32.286]     ^
 [2016/08/11 15:38:32.286] src/mongoc/op-reply-header.def:1:1: note: in expansion of macro 'RPC'
 [2016/08/11 15:38:32.286]  RPC(
 [2016/08/11 15:38:32.286]  ^
 [2016/08/11 15:38:32.292] cc1: all warnings being treated as errors

Comment by Githook User [ 05/Aug/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1421 unused function warning on big-endian
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/0b767d31b98e42b7de16d5277262939fc324034f

Comment by Hannes Magnusson [ 27/Jul/16 ]

Also on suse12:
https://evergreen.mongodb.com/task_log_raw/mongo_c_driver_zseries_suse12_debug_compile_sasl_nossl_4ea9bcd961df939b58a6e5db017a3fd13425a34a_16_07_27_17_15_47/0?type=T

Generated at Wed Feb 07 21:12:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.