Suppress initial set of unique_ptr<T[]>::operator[] unsafe warnings

The clang compiler can now warn on another unsafe pattern: indexing
an element of unique_ptr<T[]>. This CL stops short of actually
enabling this warning for Chromium builds, but identifies some
usage which would trigger the new warning and suppresses it via the
UNSAFE_TODO() macro.

The warning itself can be enabled in a one-line follow-on, to ease
a revert if required.

Change-Id: Ibe0b56d77f51114715d655f137714950034ec955
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7106863
Owners-Override: Nico Weber <[email protected]>
Reviewed-by: Nico Weber <[email protected]>
Commit-Queue: Tom Sepez <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1540262}
NOKEYCHECK=True
GitOrigin-RevId: bee5f7ccd83b949fbd4bf96677d7039f077a5301
1 file changed