Author :
Sylvain Defresne
Date :
2024-08-12 11:47:16
Hash :c9bf5465 Message :Reland "Remove the linkage-specification on `main`"
This is a reland of commit b60dc9d59aad03e641b86431c277c877d4ca9d7a
Original change's description:
> Remove the linkage-specification on `main`
>
> According to the standard, the main function should have no
> linkage-specification [1]. New version of clang will enforce
> this via a warning [2] which causes build failure if building
> with `-Werror` which treats warnings as error.
>
> Remove the superfluous linkage-specification to fix the error.
>
> [1]: https://eel.is/c++draft/basic.start#main-3
> [2]: https://github.com/llvm/llvm-project/pull/101853
>
> Fixed: chromium:358427300
> Change-Id: I541166cbd122c7e296ecdd2b5a9f9a107fe82872
> Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/5782349
> Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Fixed: chromium:358427300
Change-Id: I380fdf74dc2a056f94af35c5c6c566a88d750c7d
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/5785953
Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>