Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce compiler warning when using ETL_DECLARE_DEBUG_COUNT. #764

Conversation

dhebbeker
Copy link
Contributor

Replaced:

(ETL_DECLARE_DEBUG_COUNT\s*?);+

with

\1

In order to avoid warning as such

Warning[Pe381]: extra ";" ignored etl\include\etl\private\vector_base.h 171

When

!defined(ETL_DEBUG_COUNT)

⚠ Partially reverts c92ab94.

For ETL_DECLARE_DEBUG_COUNT it can be assumed, that it will not be part of an expression.
For the other ETL_\w*_DEBUG_COUNT this can not be assumend.

Replaced:

    (ETL_DECLARE_DEBUG_COUNT\s*?);+

with

    \1

In order to avoid warning as such

    Warning[Pe381]: extra ";" ignored etl\include\etl\private\vector_base.h 171

When

    !defined(ETL_DEBUG_COUNT)

Partially reverts c92ab94.
@semanticdiff-com
Copy link

View changes with SemanticDiff

@jwellbelove
Copy link
Contributor

I fixed this in #749, but it looks like I forgot to merge the changes in the last release!

@dhebbeker
Copy link
Contributor Author

I can confirm, this issue is resolved. A different solution has been applied.

@dhebbeker dhebbeker closed this Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants