facebook / mysql-5.6

Facebook's branch of the Oracle MySQL database. This includes MyRocks.
http://myrocks.io
Other
2.47k stars 712 forks source link

plugin/test_service_privacy/test_build_column_lineage_info.cc: fix Ap… #1352

Closed laurynas-biveinis closed 10 months ago

laurynas-biveinis commented 10 months ago

…ple clang 14 Release build

In Release build, there are write-only variables:

/Users/laurynas/vilniusdb/test_bypass_rpc-release-build/plugin/test_service_privacy/test_build_column_lineage_info.cc:98:15: error: variable 'field_id' set but not used [-Werror,-Wunused-but-set-variable] int32_t field_id = 0; ^ /Users/laurynas/vilniusdb/test_bypass_rpc-release-build/plugin/test_service_privacy/test_build_column_lineage_info.cc:140:15: error: variable 'field_id' set but not used [-Werror,-Wunused-but-set-variable] int32_t field_id = 0; ^

Squash with f0b3d115e480b411fb43a3bfff84bafbd3b7db82

facebook-github-bot commented 10 months ago

@luqun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.