)]}'
{"id":"openocd~master~I164da7165c77f232ae83f6d60305360a87c7604a","project":"openocd","branch":"master","attention_set":{},"removed_from_attention_set":{"1001667":{"account":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"last_update":"2026-06-09 14:41:41.000000000","reason":"Change was submitted"},"1000021":{"account":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"last_update":"2026-06-09 14:41:37.000000000","reason":"removed on reply"},"1000853":{"account":{"_account_id":1000853,"name":"zapb","display_name":"Marc Schink","email":"dev@zapb.de","username":"zapb"},"last_update":"2026-05-28 10:49:57.000000000","reason":"\u003cGERRIT_ACCOUNT_1000853\u003e replied on the change","reason_account":{"_account_id":1000853,"name":"zapb","display_name":"Marc Schink","email":"dev@zapb.de","username":"zapb"}},"1001803":{"account":{"_account_id":1001803,"name":"Samuel Obuch","email":"samuel.obuch@espressif.com","username":"sobuch"},"last_update":"2026-06-09 14:41:41.000000000","reason":"Change was submitted"},"1000716":{"account":{"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"},"last_update":"2026-06-09 14:41:41.000000000","reason":"Change was submitted"}},"hashtags":[],"change_id":"I164da7165c77f232ae83f6d60305360a87c7604a","subject":"helper/replacements: Fix Windows build using clang (-Wsign-compare)","status":"MERGED","created":"2026-03-12 13:33:24.000000000","updated":"2026-06-09 14:41:41.000000000","submitted":"2026-06-09 14:41:41.000000000","submitter":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"total_comment_count":16,"unresolved_comment_count":0,"has_review_started":true,"submission_id":"9506","meta_rev_id":"7ab61942d8ee8603e0547b16a00a585cbc5bcf2e","_number":9506,"owner":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"all":[{"value":0,"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},{"value":0,"_account_id":1001803,"name":"Samuel Obuch","email":"samuel.obuch@espressif.com","username":"sobuch"},{"tag":"autogenerated:gerrit:merged","value":1,"date":"2026-06-09 14:41:41.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},{"value":0,"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"}],"values":{"-1":"Fails"," 0":"No score","+1":"Verified"},"description":"","default_value":0},"Code-Review":{"approved":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"all":[{"tag":"autogenerated:gerrit:merged","value":2,"date":"2026-06-09 14:41:41.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},{"value":0,"_account_id":1001803,"name":"Samuel Obuch","email":"samuel.obuch@espressif.com","username":"sobuch"},{"value":0,"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},{"tag":"autogenerated:gerrit:merged","value":1,"date":"2026-06-09 14:41:41.000000000","permitted_voting_range":{"min":1,"max":2},"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"}],"values":{"-2":"This shall not be merged","-1":"I would prefer this is not merged as is"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me, approved"},"description":"","default_value":0}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},{"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"},{"_account_id":1001803,"name":"Samuel Obuch","email":"samuel.obuch@espressif.com","username":"sobuch"}],"CC":[{"_account_id":1000853,"name":"zapb","display_name":"Marc Schink","email":"dev@zapb.de","username":"zapb"}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2026-03-12 13:33:33.000000000","updated_by":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"reviewer":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"state":"CC"},{"updated":"2026-03-12 13:34:49.000000000","updated_by":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"reviewer":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"state":"REVIEWER"},{"updated":"2026-03-13 09:15:02.000000000","updated_by":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"reviewer":{"_account_id":1000853,"name":"zapb","display_name":"Marc Schink","email":"dev@zapb.de","username":"zapb"},"state":"CC"},{"updated":"2026-03-23 10:37:24.000000000","updated_by":{"_account_id":1001803,"name":"Samuel Obuch","email":"samuel.obuch@espressif.com","username":"sobuch"},"reviewer":{"_account_id":1001803,"name":"Samuel Obuch","email":"samuel.obuch@espressif.com","username":"sobuch"},"state":"REVIEWER"},{"updated":"2026-05-27 18:27:05.000000000","updated_by":{"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"},"reviewer":{"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"},"state":"REVIEWER"},{"updated":"2026-05-28 08:42:53.000000000","updated_by":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"reviewer":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"state":"CC"},{"updated":"2026-06-09 14:41:37.000000000","updated_by":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"reviewer":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"state":"REVIEWER"}],"messages":[{"id":"2e21ba8c0f154d1d72739c4512564013f5cd848b","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-03-12 13:33:24.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"4e0cdaf8a70c804ef9b29ddf2e636e68ad3647fe","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2026-03-12 13:34:49.000000000","message":"Patch Set 1: Verified-1\n\nBuild Failed \n\nhttps://build.openocd.org/job/openocd-gerrit-build/21980/ : FAILURE\n\nhttps://build.openocd.org/job/openocd-gerrit/22876/ : FAILURE","accounts_in_message":[],"_revision_number":1},{"id":"fa131b81e3ab59a113543f094017bd9986084d49","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-03-12 13:48:11.000000000","message":"Uploaded patch set 2.\n\nOutdated Votes:\n* Verified-1 (copy condition: \"changekind:NO_CHANGE\")\n","accounts_in_message":[],"_revision_number":2},{"id":"d6897030f9c3fbbaa52f1f320e1622b3c750ffff","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-03-12 13:56:16.000000000","message":"Uploaded patch set 3.","accounts_in_message":[],"_revision_number":3},{"id":"16f9593f86be44fa1d335c7d2d563971f5699b08","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2026-03-12 13:56:20.000000000","message":"Patch Set 2: Verified-1\n\nBuild Failed \n\nhttps://build.openocd.org/job/openocd-gerrit-build/21981/ : ABORTED\n\nhttps://build.openocd.org/job/openocd-gerrit/22877/ : SUCCESS","accounts_in_message":[],"_revision_number":2},{"id":"17e73f819456c50d2c113dce030f05521a59f7ad","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-03-12 14:41:18.000000000","message":"Uploaded patch set 4.","accounts_in_message":[],"_revision_number":4},{"id":"bfedfdec19b74636a9a0493494bfc455e77afabe","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2026-03-12 14:41:25.000000000","message":"Patch Set 3: Verified-1\n\nBuild Failed \n\nhttps://build.openocd.org/job/openocd-gerrit-build/21982/ : ABORTED\n\nhttps://build.openocd.org/job/openocd-gerrit/22878/ : SUCCESS","accounts_in_message":[],"_revision_number":3},{"id":"66d5cdb6ff1b8166f1a39ae1acb837c0a013b245","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2026-03-12 16:14:08.000000000","message":"Patch Set 4: Verified+1\n\nBuild Successful \n\nhttps://build.openocd.org/job/openocd-gerrit-build/21983/ : SUCCESS\n\nhttps://build.openocd.org/job/openocd-gerrit/22879/ : SUCCESS","accounts_in_message":[],"_revision_number":4},{"id":"613db0aedf0cee7d25fe65c6bc28805872901081","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-03-13 09:15:02.000000000","message":"Patch Set 4:\n\n(1 comment)","accounts_in_message":[],"_revision_number":4},{"id":"2e65b99842b0e18ac38a8ed04bf6fadeba417603","author":{"_account_id":1000853,"name":"zapb","display_name":"Marc Schink","email":"dev@zapb.de","username":"zapb"},"real_author":{"_account_id":1000853,"name":"zapb","display_name":"Marc Schink","email":"dev@zapb.de","username":"zapb"},"date":"2026-03-13 18:31:48.000000000","message":"Patch Set 4:\n\n(1 comment)","accounts_in_message":[],"_revision_number":4},{"id":"1cc921623df86712980bd8a40bc0b9551441ce36","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-03-16 06:57:54.000000000","message":"Patch Set 4:\n\n(1 comment)","accounts_in_message":[],"_revision_number":4},{"id":"e47e825fd9c324f7a0121e13f20262a1c9ee5829","author":{"_account_id":1001803,"name":"Samuel Obuch","email":"samuel.obuch@espressif.com","username":"sobuch"},"real_author":{"_account_id":1001803,"name":"Samuel Obuch","email":"samuel.obuch@espressif.com","username":"sobuch"},"date":"2026-03-23 10:37:24.000000000","message":"Patch Set 4: Code-Review+1\n\n(1 comment)","accounts_in_message":[],"_revision_number":4},{"id":"0688dc47b111d4b113e81d8743ff13c1b7c2a209","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-03-23 10:41:02.000000000","message":"Patch Set 4:\n\n(1 comment)","accounts_in_message":[],"_revision_number":4},{"id":"0f7d3bbfc7c225ab5cf6bd5a69f07ec0fe9a5d38","author":{"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"},"real_author":{"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"},"date":"2026-05-27 18:27:05.000000000","message":"Patch Set 4: Code-Review+2\n\n(1 comment)","accounts_in_message":[],"_revision_number":4},{"id":"72d9e2930e12633278482e24dd4f9a094ee2dd33","author":{"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"},"real_author":{"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"},"date":"2026-05-27 18:27:18.000000000","message":"Patch Set 4: Code-Review-1","accounts_in_message":[],"_revision_number":4},{"id":"df5516413bb9db708f8d6212770facc9efa40f01","author":{"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"},"real_author":{"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"},"date":"2026-05-27 18:27:49.000000000","message":"Patch Set 4: -Code-Review","accounts_in_message":[],"_revision_number":4},{"id":"3aeb82075f8940a400b47816c271f20c494e187e","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-05-28 07:14:00.000000000","message":"Uploaded patch set 5: Commit message was updated.\n\nOutdated Votes:\n* Code-Review+1 (copy condition: \"changekind:NO_CHANGE OR is:MIN\")\n* Verified+1 (copy condition: \"changekind:NO_CHANGE\")\n","accounts_in_message":[],"_revision_number":5},{"id":"34eb79cc9906319b3fde17b5fe02ab7c3b67e42d","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-05-28 07:23:36.000000000","message":"Patch Set 5:\n\n(2 comments)","accounts_in_message":[],"_revision_number":5},{"id":"b48af338f0fdcfb20d5abdca1acfc9f414eee922","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2026-05-28 07:35:48.000000000","message":"Patch Set 5: Verified+1\n\nBuild Successful \n\nhttps://build.openocd.org/job/openocd-gerrit-build/22408/ : SUCCESS\n\nhttps://build.openocd.org/job/openocd-gerrit/23308/ : SUCCESS","accounts_in_message":[],"_revision_number":5},{"id":"49322f1974caa65f180fce474615c504e5b57cdd","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2026-05-28 08:42:53.000000000","message":"Patch Set 5:\n\n(2 comments)","accounts_in_message":[],"_revision_number":5},{"id":"56c815c9dadf220dbb4d99daf857d1cb22f1706d","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-05-28 10:06:24.000000000","message":"Uploaded patch set 6.\n\nOutdated Votes:\n* Verified+1 (copy condition: \"changekind:NO_CHANGE\")\n","accounts_in_message":[],"_revision_number":6},{"id":"0a07b97e617214dfc34bce6088fba60fd1db940a","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-05-28 10:08:20.000000000","message":"Patch Set 6:\n\n(1 comment)","accounts_in_message":[],"_revision_number":6},{"id":"4ead3204d131f141f898c3d67a3889c918efcb59","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-05-28 10:15:11.000000000","message":"Patch Set 6:\n\n(1 comment)","accounts_in_message":[],"_revision_number":6},{"id":"d064e4b15ab30871f655de856e8a26554a3664dd","tag":"autogenerated:jenkins-gerrit-trigger","author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"real_author":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]},"date":"2026-05-28 10:39:58.000000000","message":"Patch Set 6: Verified+1\n\nBuild Successful \n\nhttps://build.openocd.org/job/openocd-gerrit-build/22410/ : SUCCESS\n\nhttps://build.openocd.org/job/openocd-gerrit/23310/ : SUCCESS","accounts_in_message":[],"_revision_number":6},{"id":"943795f39bcd9d3f9c4774c80a2cbe6c0d53a169","author":{"_account_id":1000853,"name":"zapb","display_name":"Marc Schink","email":"dev@zapb.de","username":"zapb"},"real_author":{"_account_id":1000853,"name":"zapb","display_name":"Marc Schink","email":"dev@zapb.de","username":"zapb"},"date":"2026-05-28 10:49:57.000000000","message":"Patch Set 6:\n\n(1 comment)","accounts_in_message":[],"_revision_number":6},{"id":"1fa62ea023d212c02c68049ce826d040c5258677","author":{"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"},"real_author":{"_account_id":1000716,"name":"Chris Head","email":"chead@zaber.com","username":"Hawk777"},"date":"2026-05-28 22:49:58.000000000","message":"Patch Set 6: Code-Review+1\n\n(1 comment)","accounts_in_message":[],"_revision_number":6},{"id":"9fce98f468899be22d34d3a48af51478744e4558","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-05-29 06:57:24.000000000","message":"Patch Set 6:\n\n(1 comment)","accounts_in_message":[],"_revision_number":6},{"id":"a9b3628f4bebd2af57d15a05155a068c34352a07","author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"real_author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"date":"2026-05-29 06:58:45.000000000","message":"Patch Set 6:\n\n(1 comment)","accounts_in_message":[],"_revision_number":6},{"id":"a9ce9496229a0570e561fdcd7fc6c3cdfba18fdf","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2026-06-09 14:41:37.000000000","message":"Patch Set 6: Code-Review+2","accounts_in_message":[],"_revision_number":6},{"id":"7ab61942d8ee8603e0547b16a00a585cbc5bcf2e","tag":"autogenerated:gerrit:merged","author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"real_author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"date":"2026-06-09 14:41:41.000000000","message":"Change has been successfully cherry-picked as d653cb4737b0a91f4c6c018fb7141c2081ea682b","accounts_in_message":[],"_revision_number":7}],"current_revision":"d653cb4737b0a91f4c6c018fb7141c2081ea682b","revisions":{"636f43d28aca8d49b9b7c81d4cafdc27aab5b302":{"kind":"REWORK","_number":4,"created":"2026-03-12 14:41:18.000000000","uploader":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"ref":"refs/changes/06/9506/4","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/06/9506/4","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/4 \u0026\u0026 git checkout -b change-9506 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/4 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/4 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/4 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/06/9506/4","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/4 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"e4c49d86052dfc241ec60bbd3b7e190307891722","subject":"server/server: Fix build on FreeBSD"}],"author":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-03-12 13:07:32.000000000","tz":60},"committer":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-03-12 14:41:03.000000000","tz":60},"subject":"helper/replacements: Fix Windows build using clang (-Wsign-compare)","message":"helper/replacements: Fix Windows build using clang (-Wsign-compare)\n\nOpenOCD currently won\u0027t build on Windows using clang for these\nreasons:\n- \"-Wextra\", which is enabled for OpenOCD builds by default,\n  causes on clang that \"-Wsign-compare\" gets also enabled.\n- Socket descriptors on Windows are signed, causing\n  -Wsign-compare warnings on each invocation of FD_SET.\n\nPossible workaround: ./configure [...] --disable-werror\n\nFix the issue by creating OCD_FD_* wrapper macros over FD_*\nthat add the missing cast on Windows, silencing those compiler\nwarnings.\n\nAlso make sure that -Wsign-compare gets enabled on GCC.\n\nSteps to reproduce the issue:\n\n1) Use a Windows machine\n2) Download and install MSYS2 from: https://www.msys2.org\n3) In the MSYS2 shell, install the following packages:\n\n   pacman -S autotools automake base-devel mingw-w64-x86_64-clang git tcl\n\n4) Clone libjaylink source\n\n   git clone https://github.com/openocd-org/openocd.git --recursive\n   cd openocd\n\n5) Configure and build openocd\n\n   export CC\u003d/mingw64/bin/clang\n   ./bootstrap\n   ./configure \\\n       --enable-jtag_vpi \\\n       --enable-remote-bitbang \\\n       --prefix\u003d`pwd`/install \\\n       --enable-internal-jimtcl\n   make -j$(nproc)\n\n6) Observe the sign-compare error message(s) produced by clang,\n   for example:\n\nsrc/helper/replacements.c:178:6: error: comparison of integers\nof different signs: \u0027SOCKET\u0027 (aka \u0027unsigned long long\u0027) and\n\u0027int\u0027 [-Werror,-Wsign-compare]\n  178 |  FD_SET(i, \u0026sock_read);\n      |  ^~~~~~~~~~~~~~~~~~~~~\nC:/msys64/mingw64/include/psdk_inc/_fd_types.h:77:40:\nnote: expanded from macro \u0027FD_SET\u0027\n   77 | if (((fd_set *)(set))-\u003efd_array[__i] \u003d\u003d (fd)) {         \\\n      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~\n\n$ clang --version\nclang version 21.1.7\nTarget: x86_64-w64-windows-gnu\nThread model: posix\nInstalledDir: C:/msys64/mingw64/bin\n\nChange-Id: I164da7165c77f232ae83f6d60305360a87c7604a\nSigned-off-by: Jan Matyas \u003cjan.matyas@codasip.com\u003e\n"}},"b81810a1a697493a55a0df37058f935d39d75466":{"kind":"NO_CODE_CHANGE","_number":5,"created":"2026-05-28 07:14:00.000000000","uploader":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"ref":"refs/changes/06/9506/5","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/06/9506/5","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/5 \u0026\u0026 git checkout -b change-9506 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/5 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/5 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/5 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/06/9506/5","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/5 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"e4c49d86052dfc241ec60bbd3b7e190307891722","subject":"server/server: Fix build on FreeBSD"}],"author":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-03-12 13:07:32.000000000","tz":60},"committer":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-05-28 07:13:29.000000000","tz":120},"subject":"helper/replacements: Fix Windows build using clang (-Wsign-compare)","message":"helper/replacements: Fix Windows build using clang (-Wsign-compare)\n\nOpenOCD currently won\u0027t build on Windows using clang for these\nreasons:\n- \"-Wextra\", which is enabled for OpenOCD builds by default,\n  causes on clang that \"-Wsign-compare\" gets also enabled.\n- Socket descriptors on Windows are unsigned, causing\n  -Wsign-compare warnings on each invocation of FD_SET.\n\nPossible workaround: ./configure [...] --disable-werror\n\nFix the issue by creating OCD_FD_* wrapper macros over FD_*\nthat add the missing cast on Windows, silencing those compiler\nwarnings.\n\nAlso make sure that -Wsign-compare gets enabled on GCC.\n\nSteps to reproduce the issue:\n\n1) Use a Windows machine\n2) Download and install MSYS2 from: https://www.msys2.org\n3) In the MSYS2 shell, install the following packages:\n\n   pacman -S autotools automake base-devel mingw-w64-x86_64-clang git tcl\n\n4) Clone libjaylink source\n\n   git clone https://github.com/openocd-org/openocd.git --recursive\n   cd openocd\n\n5) Configure and build openocd\n\n   export CC\u003d/mingw64/bin/clang\n   ./bootstrap\n   ./configure \\\n       --enable-jtag_vpi \\\n       --enable-remote-bitbang \\\n       --prefix\u003d`pwd`/install \\\n       --enable-internal-jimtcl\n   make -j$(nproc)\n\n6) Observe the sign-compare error message(s) produced by clang,\n   for example:\n\nsrc/helper/replacements.c:178:6: error: comparison of integers\nof different signs: \u0027SOCKET\u0027 (aka \u0027unsigned long long\u0027) and\n\u0027int\u0027 [-Werror,-Wsign-compare]\n  178 |  FD_SET(i, \u0026sock_read);\n      |  ^~~~~~~~~~~~~~~~~~~~~\nC:/msys64/mingw64/include/psdk_inc/_fd_types.h:77:40:\nnote: expanded from macro \u0027FD_SET\u0027\n   77 | if (((fd_set *)(set))-\u003efd_array[__i] \u003d\u003d (fd)) {         \\\n      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~\n\n$ clang --version\nclang version 21.1.7\nTarget: x86_64-w64-windows-gnu\nThread model: posix\nInstalledDir: C:/msys64/mingw64/bin\n\nChange-Id: I164da7165c77f232ae83f6d60305360a87c7604a\nSigned-off-by: Jan Matyas \u003cjan.matyas@codasip.com\u003e\n"}},"343f44a1bc8ee53269c2815bf52c9301ae9fff3d":{"kind":"REWORK","_number":6,"created":"2026-05-28 10:06:24.000000000","uploader":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"ref":"refs/changes/06/9506/6","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/06/9506/6","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/6 \u0026\u0026 git checkout -b change-9506 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/6 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/6 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/6 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/06/9506/6","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/6 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"e4c49d86052dfc241ec60bbd3b7e190307891722","subject":"server/server: Fix build on FreeBSD"}],"author":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-03-12 13:07:32.000000000","tz":60},"committer":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-05-28 10:05:57.000000000","tz":120},"subject":"helper/replacements: Fix Windows build using clang (-Wsign-compare)","message":"helper/replacements: Fix Windows build using clang (-Wsign-compare)\n\nOpenOCD currently won\u0027t build on Windows using clang for these\nreasons:\n- \"-Wextra\", which is enabled for OpenOCD builds by default,\n  causes on clang that \"-Wsign-compare\" gets also enabled.\n- Socket descriptors on Windows are unsigned, causing\n  -Wsign-compare warnings on each invocation of FD_SET.\n\nPossible workaround: ./configure [...] --disable-werror\n\nFix the issue by creating OCD_FD_* wrapper macros over FD_*\nthat add the missing cast on Windows, silencing those compiler\nwarnings.\n\nAlso make sure that -Wsign-compare gets enabled on GCC.\n\nSteps to reproduce the issue:\n\n1) Use a Windows machine\n2) Download and install MSYS2 from: https://www.msys2.org\n3) In the MSYS2 shell, install the following packages:\n\n   pacman -S autotools automake base-devel mingw-w64-x86_64-clang git tcl\n\n4) Clone libjaylink source\n\n   git clone https://github.com/openocd-org/openocd.git --recursive\n   cd openocd\n\n5) Configure and build openocd\n\n   export CC\u003d/mingw64/bin/clang\n   ./bootstrap\n   ./configure \\\n       --enable-jtag_vpi \\\n       --enable-remote-bitbang \\\n       --prefix\u003d`pwd`/install \\\n       --enable-internal-jimtcl\n   make -j$(nproc)\n\n6) Observe the sign-compare error message(s) produced by clang,\n   for example:\n\nsrc/helper/replacements.c:178:6: error: comparison of integers\nof different signs: \u0027SOCKET\u0027 (aka \u0027unsigned long long\u0027) and\n\u0027int\u0027 [-Werror,-Wsign-compare]\n  178 |  FD_SET(i, \u0026sock_read);\n      |  ^~~~~~~~~~~~~~~~~~~~~\nC:/msys64/mingw64/include/psdk_inc/_fd_types.h:77:40:\nnote: expanded from macro \u0027FD_SET\u0027\n   77 | if (((fd_set *)(set))-\u003efd_array[__i] \u003d\u003d (fd)) {         \\\n      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~\n\n$ clang --version\nclang version 21.1.7\nTarget: x86_64-w64-windows-gnu\nThread model: posix\nInstalledDir: C:/msys64/mingw64/bin\n\nChange-Id: I164da7165c77f232ae83f6d60305360a87c7604a\nSigned-off-by: Jan Matyas \u003cjan.matyas@codasip.com\u003e\n"}},"d653cb4737b0a91f4c6c018fb7141c2081ea682b":{"kind":"REWORK","_number":7,"created":"2026-06-09 14:41:41.000000000","uploader":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"ref":"refs/changes/06/9506/7","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/06/9506/7","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/7 \u0026\u0026 git checkout -b change-9506 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/7 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/7 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/7 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/06/9506/7","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/7 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"f2fba27a8807f6684cd8dd7e47f27009ee00fa1b","subject":"flash/nor/tcl: Remove unused variable"}],"author":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-03-12 13:07:32.000000000","tz":60},"committer":{"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","date":"2026-06-09 14:41:41.000000000","tz":0},"subject":"helper/replacements: Fix Windows build using clang (-Wsign-compare)","message":"helper/replacements: Fix Windows build using clang (-Wsign-compare)\n\nOpenOCD currently won\u0027t build on Windows using clang for these\nreasons:\n- \"-Wextra\", which is enabled for OpenOCD builds by default,\n  causes on clang that \"-Wsign-compare\" gets also enabled.\n- Socket descriptors on Windows are unsigned, causing\n  -Wsign-compare warnings on each invocation of FD_SET.\n\nPossible workaround: ./configure [...] --disable-werror\n\nFix the issue by creating OCD_FD_* wrapper macros over FD_*\nthat add the missing cast on Windows, silencing those compiler\nwarnings.\n\nAlso make sure that -Wsign-compare gets enabled on GCC.\n\nSteps to reproduce the issue:\n\n1) Use a Windows machine\n2) Download and install MSYS2 from: https://www.msys2.org\n3) In the MSYS2 shell, install the following packages:\n\n   pacman -S autotools automake base-devel mingw-w64-x86_64-clang git tcl\n\n4) Clone libjaylink source\n\n   git clone https://github.com/openocd-org/openocd.git --recursive\n   cd openocd\n\n5) Configure and build openocd\n\n   export CC\u003d/mingw64/bin/clang\n   ./bootstrap\n   ./configure \\\n       --enable-jtag_vpi \\\n       --enable-remote-bitbang \\\n       --prefix\u003d`pwd`/install \\\n       --enable-internal-jimtcl\n   make -j$(nproc)\n\n6) Observe the sign-compare error message(s) produced by clang,\n   for example:\n\nsrc/helper/replacements.c:178:6: error: comparison of integers\nof different signs: \u0027SOCKET\u0027 (aka \u0027unsigned long long\u0027) and\n\u0027int\u0027 [-Werror,-Wsign-compare]\n  178 |  FD_SET(i, \u0026sock_read);\n      |  ^~~~~~~~~~~~~~~~~~~~~\nC:/msys64/mingw64/include/psdk_inc/_fd_types.h:77:40:\nnote: expanded from macro \u0027FD_SET\u0027\n   77 | if (((fd_set *)(set))-\u003efd_array[__i] \u003d\u003d (fd)) {         \\\n      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~\n\n$ clang --version\nclang version 21.1.7\nTarget: x86_64-w64-windows-gnu\nThread model: posix\nInstalledDir: C:/msys64/mingw64/bin\n\nChange-Id: I164da7165c77f232ae83f6d60305360a87c7604a\nSigned-off-by: Jan Matyas \u003cjan.matyas@codasip.com\u003e\nReviewed-on: https://review.openocd.org/c/openocd/+/9506\nReviewed-by: Antonio Borneo \u003cborneo.antonio@gmail.com\u003e\nTested-by: jenkins\nReviewed-by: Chris Head \u003cchead@zaber.com\u003e\n"}},"4ce3fc1c994e0ff074597b269ad3e7d93b54730c":{"kind":"REWORK","_number":1,"created":"2026-03-12 13:33:24.000000000","uploader":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"ref":"refs/changes/06/9506/1","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/06/9506/1","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/1 \u0026\u0026 git checkout -b change-9506 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/06/9506/1","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/1 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"e4c49d86052dfc241ec60bbd3b7e190307891722","subject":"server/server: Fix build on FreeBSD"}],"author":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-03-12 13:07:32.000000000","tz":60},"committer":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-03-12 13:25:08.000000000","tz":60},"subject":"helper/replacements: Fix Windows build using clang (-Wsign-compare)","message":"helper/replacements: Fix Windows build using clang (-Wsign-compare)\n\nOpenOCD currently won\u0027t build on Windows using clang for these\nreasons:\n- \"-Wextra\", which is enabled for OpenOCD builds by default,\n  causes on clang that \"-Wsign-compare\" gets also enabled.\n- Socket descriptors on Windows are signed, causing\n  -Wsign-compare warnings on each invocation of FD_SET.\n\nPossible workaround: ./configure [...] --disable-werror\n\nFix the issue by creating OCD_FD_* wrapper macros over FD_*\nthat add the missing cast on Windows, silencing those compiler\nwarnings.\n\nAlso make sure that -Wsign-compare gets enabled on GCC.\n\nSteps to reproduce the issue:\n\n1) Use a Windows machine\n2) Download and install MSYS2 from: https://www.msys2.org\n3) In the MSYS2 shell, install the following packages:\n\n   pacman -S autotools automake base-devel mingw-w64-x86_64-clang git tcl\n\n4) Clone libjaylink source\n\n   git clone https://github.com/openocd-org/openocd.git --recursive\n   cd openocd\n\n5) Configure and build openocd\n\n   export CC\u003d/mingw64/bin/clang\n   ./bootstrap\n   ./configure \\\n       --enable-jtag_vpi \\\n       --enable-remote-bitbang \\\n       --prefix\u003d`pwd`/install \\\n       --enable-internal-jimtcl\n   make -j$(nproc)\n\n6) Observe the sign-compare error message(s) produced by clang,\n   for example:\n\nsrc/helper/replacements.c:178:6: error: comparison of integers\nof different signs: \u0027SOCKET\u0027 (aka \u0027unsigned long long\u0027) and\n\u0027int\u0027 [-Werror,-Wsign-compare]\n  178 |  FD_SET(i, \u0026sock_read);\n      |  ^~~~~~~~~~~~~~~~~~~~~\nC:/msys64/mingw64/include/psdk_inc/_fd_types.h:77:40:\nnote: expanded from macro \u0027FD_SET\u0027\n   77 | if (((fd_set *)(set))-\u003efd_array[__i] \u003d\u003d (fd)) {         \\\n      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~\n\n$ clang --version\nclang version 21.1.7\nTarget: x86_64-w64-windows-gnu\nThread model: posix\nInstalledDir: C:/msys64/mingw64/bin\n\nChange-Id: I164da7165c77f232ae83f6d60305360a87c7604a\nSigned-off-by: Jan Matyas \u003cjan.matyas@codasip.com\u003e\n"}},"7afd5e12c629fce3a2b4813ca10bce0f742d914c":{"kind":"REWORK","_number":2,"created":"2026-03-12 13:48:11.000000000","uploader":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"ref":"refs/changes/06/9506/2","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/06/9506/2","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/2 \u0026\u0026 git checkout -b change-9506 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/2 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/2 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/2 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/06/9506/2","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/2 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"e4c49d86052dfc241ec60bbd3b7e190307891722","subject":"server/server: Fix build on FreeBSD"}],"author":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-03-12 13:07:32.000000000","tz":60},"committer":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-03-12 13:47:32.000000000","tz":60},"subject":"helper/replacements: Fix Windows build using clang (-Wsign-compare)","message":"helper/replacements: Fix Windows build using clang (-Wsign-compare)\n\nOpenOCD currently won\u0027t build on Windows using clang for these\nreasons:\n- \"-Wextra\", which is enabled for OpenOCD builds by default,\n  causes on clang that \"-Wsign-compare\" gets also enabled.\n- Socket descriptors on Windows are signed, causing\n  -Wsign-compare warnings on each invocation of FD_SET.\n\nPossible workaround: ./configure [...] --disable-werror\n\nFix the issue by creating OCD_FD_* wrapper macros over FD_*\nthat add the missing cast on Windows, silencing those compiler\nwarnings.\n\nAlso make sure that -Wsign-compare gets enabled on GCC.\n\nSteps to reproduce the issue:\n\n1) Use a Windows machine\n2) Download and install MSYS2 from: https://www.msys2.org\n3) In the MSYS2 shell, install the following packages:\n\n   pacman -S autotools automake base-devel mingw-w64-x86_64-clang git tcl\n\n4) Clone libjaylink source\n\n   git clone https://github.com/openocd-org/openocd.git --recursive\n   cd openocd\n\n5) Configure and build openocd\n\n   export CC\u003d/mingw64/bin/clang\n   ./bootstrap\n   ./configure \\\n       --enable-jtag_vpi \\\n       --enable-remote-bitbang \\\n       --prefix\u003d`pwd`/install \\\n       --enable-internal-jimtcl\n   make -j$(nproc)\n\n6) Observe the sign-compare error message(s) produced by clang,\n   for example:\n\nsrc/helper/replacements.c:178:6: error: comparison of integers\nof different signs: \u0027SOCKET\u0027 (aka \u0027unsigned long long\u0027) and\n\u0027int\u0027 [-Werror,-Wsign-compare]\n  178 |  FD_SET(i, \u0026sock_read);\n      |  ^~~~~~~~~~~~~~~~~~~~~\nC:/msys64/mingw64/include/psdk_inc/_fd_types.h:77:40:\nnote: expanded from macro \u0027FD_SET\u0027\n   77 | if (((fd_set *)(set))-\u003efd_array[__i] \u003d\u003d (fd)) {         \\\n      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~\n\n$ clang --version\nclang version 21.1.7\nTarget: x86_64-w64-windows-gnu\nThread model: posix\nInstalledDir: C:/msys64/mingw64/bin\n\nChange-Id: I164da7165c77f232ae83f6d60305360a87c7604a\nSigned-off-by: Jan Matyas \u003cjan.matyas@codasip.com\u003e\n"}},"a01643c19aaf1e76e131c3ca4a20db7931e80396":{"kind":"REWORK","_number":3,"created":"2026-03-12 13:56:16.000000000","uploader":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"ref":"refs/changes/06/9506/3","fetch":{"anonymous http":{"url":"https://review.openocd.org/openocd","ref":"refs/changes/06/9506/3","commands":{"Branch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/3 \u0026\u0026 git checkout -b change-9506 FETCH_HEAD","Checkout":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/3 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/3 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/3 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.openocd.org/openocd refs/changes/06/9506/3","Reset To":"git fetch https://review.openocd.org/openocd refs/changes/06/9506/3 \u0026\u0026 git reset --hard FETCH_HEAD"}}},"commit":{"parents":[{"commit":"e4c49d86052dfc241ec60bbd3b7e190307891722","subject":"server/server: Fix build on FreeBSD"}],"author":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-03-12 13:07:32.000000000","tz":60},"committer":{"name":"Jan Matyas","email":"jan.matyas@codasip.com","date":"2026-03-12 13:55:47.000000000","tz":60},"subject":"helper/replacements: Fix Windows build using clang (-Wsign-compare)","message":"helper/replacements: Fix Windows build using clang (-Wsign-compare)\n\nOpenOCD currently won\u0027t build on Windows using clang for these\nreasons:\n- \"-Wextra\", which is enabled for OpenOCD builds by default,\n  causes on clang that \"-Wsign-compare\" gets also enabled.\n- Socket descriptors on Windows are signed, causing\n  -Wsign-compare warnings on each invocation of FD_SET.\n\nPossible workaround: ./configure [...] --disable-werror\n\nFix the issue by creating OCD_FD_* wrapper macros over FD_*\nthat add the missing cast on Windows, silencing those compiler\nwarnings.\n\nAlso make sure that -Wsign-compare gets enabled on GCC.\n\nSteps to reproduce the issue:\n\n1) Use a Windows machine\n2) Download and install MSYS2 from: https://www.msys2.org\n3) In the MSYS2 shell, install the following packages:\n\n   pacman -S autotools automake base-devel mingw-w64-x86_64-clang git tcl\n\n4) Clone libjaylink source\n\n   git clone https://github.com/openocd-org/openocd.git --recursive\n   cd openocd\n\n5) Configure and build openocd\n\n   export CC\u003d/mingw64/bin/clang\n   ./bootstrap\n   ./configure \\\n       --enable-jtag_vpi \\\n       --enable-remote-bitbang \\\n       --prefix\u003d`pwd`/install \\\n       --enable-internal-jimtcl\n   make -j$(nproc)\n\n6) Observe the sign-compare error message(s) produced by clang,\n   for example:\n\nsrc/helper/replacements.c:178:6: error: comparison of integers\nof different signs: \u0027SOCKET\u0027 (aka \u0027unsigned long long\u0027) and\n\u0027int\u0027 [-Werror,-Wsign-compare]\n  178 |  FD_SET(i, \u0026sock_read);\n      |  ^~~~~~~~~~~~~~~~~~~~~\nC:/msys64/mingw64/include/psdk_inc/_fd_types.h:77:40:\nnote: expanded from macro \u0027FD_SET\u0027\n   77 | if (((fd_set *)(set))-\u003efd_array[__i] \u003d\u003d (fd)) {         \\\n      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~\n\n$ clang --version\nclang version 21.1.7\nTarget: x86_64-w64-windows-gnu\nThread model: posix\nInstalledDir: C:/msys64/mingw64/bin\n\nChange-Id: I164da7165c77f232ae83f6d60305360a87c7604a\nSigned-off-by: Jan Matyas \u003cjan.matyas@codasip.com\u003e\n"}}},"requirements":[],"submit_records":[{"rule_name":"gerrit~DefaultSubmitRule","status":"CLOSED","labels":[{"label":"Verified","status":"OK","applied_by":{"_account_id":1000014,"name":"jenkins","username":"jenkins","tags":["SERVICE_USER"]}},{"label":"Code-Review","status":"OK","applied_by":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"}}]}],"submit_requirements":[{"name":"Verified","status":"SATISFIED","is_legacy":true,"submittability_expression_result":{"expression":"label:Verified\u003dMAX -label:Verified\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Verified\u003dMAX","-label:Verified\u003dMIN"],"failing_atoms":[]}},{"name":"Code-Review","status":"SATISFIED","is_legacy":true,"submittability_expression_result":{"expression":"label:Code-Review\u003dMAX -label:Code-Review\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Code-Review\u003dMAX","-label:Code-Review\u003dMIN"],"failing_atoms":[]}}]}
