Per-C++ specs main shouldn't be declared with C language linkage

PiperOrigin-RevId: 429025497
Change-Id: I7f732f4e42b64463847e192c6ca5cff820ab19ba
This commit is contained in:
Wiktor Garbacz 2022-02-16 05:55:44 -08:00 committed by Copybara-Service
parent 1dedbb9650
commit d2dfcf0800

View File

@ -413,7 +413,7 @@ void ServeRequest(sandbox2::Comms* comms) {
} // namespace client
} // namespace sapi
extern "C" ABSL_ATTRIBUTE_WEAK int main(int argc, char** argv) {
ABSL_ATTRIBUTE_WEAK int main(int argc, char* argv[]) {
gflags::SetCommandLineOptionWithMode("userspace_coredumper", "false",
gflags::SET_FLAG_IF_DEFAULT);
gflags::ParseCommandLineFlags(&argc, &argv, true);