[Chapel Merge] Suppress ICC const discarding warning

Branch: refs/heads/main
Revision: 49abc3a656933888444496b9b0497917ca7822bb
Author: riftEmber
Link: Suppress ICC const discarding warning by riftEmber · Pull Request #24895 · chapel-lang/chapel · GitHub
Log Message:
Suppress ICC const discarding warning (#24895)

Due to an apparent difference in how ICC interprets const pointer
typedefs to arrays, suppress "discarding qualifiers" warnings in ICC.

See issue ICC discarded qualifier warning for const pointer to array in generated C · Issue #24894 · chapel-lang/chapel · GitHub for more
information.

Follow up to Second attempt to emit C `const` qualifier for `c_ptrConst` type by riftEmber · Pull Request #24809 · chapel-lang/chapel · GitHub.

[reviewed by @mppf , thanks!]

Testing:

  • succeeds in reproducer configuration
  • paratest

Compare: Comparing c5bc1fa172f934156c96624ed51fcfa751d1ed88...e07a2a1a3fa1af56d7ffc68611795b35d0eb62c6 · chapel-lang/chapel · GitHub

Diff:
M make/compiler/Makefile.intel
https://github.com/chapel-lang/chapel/pull/24895.diff