Skip to content

Commit 98d3d1f

Browse files
afrindfacebook-github-bot
authored andcommitted
Remove [[fallthough]] replacement in generated header perfect hash
Summary: This was breaking some OSS builds Differential Revision: D74189092
1 parent dd86abf commit 98d3d1f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

proxygen/lib/utils/gen_perfect_hash_table.sh

-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ function generate_perfect_hash_table {
3030
LC_ALL=C sort -u ${1?} | awk "${3?}" - "${2?}" > "${4?}"
3131

3232
# Generate output source file.
33-
# We also sub out the default 'FALLTHROUGH' comment statements as modern
34-
# compilers will raise warnings unless the fallthrough is explicit.
35-
LC_ALL=C sort -u ${1?} | awk "${6?}" - "${5?}" | \
36-
${8:-gperf} -m5 -D --output-file="${7?}"
37-
perl -p -i -e "s/\/\*FALLTHROUGH\*\//[[fallthrough]];/g" "${7?}"
3833

3934
# Here we delete one of the comment lines gperf adds to the top of the file.
4035
# i.e. /* Command-line: .../gperf -m5 --output-file=... */

0 commit comments

Comments
 (0)