Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Use the standard [[nodiscard]] attribute instead of an FML macro. #17100

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

chinmaygarde
Copy link
Member

The FML_WARN_UNUSED_RESULT macro was necessary before C++17 when the
[[nodiscard]] attribute became standard. The macro was also not supported on
Windows. All platforms supported by Flutter use toolchains > C++17. Avoid the
legacy macro.

No functional change.

The FML_WARN_UNUSED_RESULT macro was necessary before C++17 when the
[[nodiscard]] attribute became standard. The macro was also not supported on
Windows. All platforms supported by Flutter use toolchains > C++17. Avoid the
legacy macro.
@chinmaygarde
Copy link
Member Author

This is part of a series of patches removing code that was relevant only for legacy C++ versions.

@chinmaygarde chinmaygarde added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Mar 11, 2020
@fluttergithubbot fluttergithubbot merged commit a37560a into flutter:master Mar 11, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 12, 2020
@chinmaygarde chinmaygarde deleted the modernize_nodiscard branch March 20, 2020 03:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants