Compiler Warnings using -Wconversion #441
-
After evaluating multiple unit test libraries for C my conclusion was that criterion might be the best available choice. However, I'm a bit unsure why there needs to be a compiler warning when using
regardless of the content of the assertion. Looking at the source I found that the warning is due to the assert node having a 1 bit bitfield for its
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The assert tree can get large for complex assertion criteria, so this was a way to avoid losing too much stack space. That said, criterion shouldn't cause warnings on use -- this is a bug. |
Beta Was this translation helpful? Give feedback.
The assert tree can get large for complex assertion criteria, so this was a way to avoid losing too much stack space. That said, criterion shouldn't cause warnings on use -- this is a bug.