diff --git a/.pick_status.json b/.pick_status.json index 3b367dfd1ff..577fafbf3df 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -914,7 +914,7 @@ "description": "libcl: avoid calling UNREACHABLE(str) macro without arguments", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "9ced3148ca18e8b057e7f2a7e773c701b95c8741", "notes": null diff --git a/src/compiler/libcl/libcl.h b/src/compiler/libcl/libcl.h index cf0d210cb76..7743f2fefde 100644 --- a/src/compiler/libcl/libcl.h +++ b/src/compiler/libcl/libcl.h @@ -101,7 +101,8 @@ */ #define unreachable(str) \ do { \ - assert(!"" str); \ + (void)"" str; /* str must be a string literal */ \ + assert(!str); \ __builtin_unreachable(); \ } while (0)