[libc] fix HashTable warnings and build problems (#74371)
commit6fd1c1b8ef407cb16f7c990a33908d289313559f
authorSchrodinger ZHU Yifan <yifanzhu@rochester.edu>
Mon, 4 Dec 2023 22:06:57 +0000 (4 17:06 -0500)
committerGitHub <noreply@github.com>
Mon, 4 Dec 2023 22:06:57 +0000 (4 14:06 -0800)
treede1312096e40fddb95ac0625b24c8d5e6c2c9a7b
parente8f3ccd2737c638fafae7c5bf13cd2e913ef0f86
[libc] fix HashTable warnings and build problems (#74371)

According to https://lab.llvm.org/buildbot/#/builders/163/builds/48002,
the generic build on HashTable fails with two major issues with
`werror`:
1. warnings on `error: suggest braces around initialization of
subobject`.
2. `__support/HashTable` tests are built regardless of its entrypoints`

This PR attempts to fix such issues.
libc/src/__support/HashTable/bitmask.h
libc/src/__support/HashTable/generic/bitmask_impl.inc
libc/test/src/__support/HashTable/CMakeLists.txt