ETLCPP / etl

Embedded Template Library
https://www.etlcpp.com
MIT License
2.05k stars 373 forks source link

Reduce compiler warning when using `ETL_DECLARE_DEBUG_COUNT`. #764

Closed dhebbeker closed 9 months ago

dhebbeker commented 9 months ago

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 c92ab94220b29b4f196c7de44a391fd3a0a1916c.

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.

semanticdiff-com[bot] commented 9 months ago

View changes with SemanticDiff

jwellbelove commented 9 months ago

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

dhebbeker commented 9 months ago

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