Skip to content

Conversation

bensuperpc
Copy link
Contributor

@bensuperpc bensuperpc commented Nov 7, 2021

Use reinterpret_cast instead old style cast on MacOS, to fix warning with -Wold-style-cast, more C++ compliant.
It triggers an error when we compiled with gtest.

Signed-off-by: Bensuperpc <[email protected]>
@google-cla google-cla bot added the cla: yes label Nov 7, 2021
Signed-off-by: Bensuperpc <[email protected]>
@dmah42
Copy link
Member

dmah42 commented Nov 8, 2021

nit: is this line > 80 characters? can you run clang-format with the Google style on it please?

Signed-off-by: Bensuperpc <[email protected]>
@LebedevRI
Copy link
Collaborator

Please don't just reformat the whole file, only the new change.

This reverts commit 1d5fe9c.
Signed-off-by: Bensuperpc <[email protected]>
@bensuperpc
Copy link
Contributor Author

It is now fixed ^^

@dmah42
Copy link
Member

dmah42 commented Nov 8, 2021

thanks!

@dmah42 dmah42 merged commit 431abd1 into google:main Nov 8, 2021
sergiud pushed a commit to sergiud/benchmark that referenced this pull request Jan 13, 2022
* Fix warning with MacOS

Signed-off-by: Bensuperpc <[email protected]>

* Re-trigger GitHub actions

Signed-off-by: Bensuperpc <[email protected]>

* Fix style

Signed-off-by: Bensuperpc <[email protected]>

* Revert "Fix style"

This reverts commit 1d5fe9c.

* Fix style only on changes

Signed-off-by: Bensuperpc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants