meekrosoft / fff

A testing micro framework for creating function test doubles
Other
766 stars 167 forks source link

Parameter for UnityPrintFloat() different between declaration and definition #22

Closed dmcminniwc closed 7 years ago

dmcminniwc commented 7 years ago

In unity.c UnityPrintFloat is defined as void UnityPrintFloat(UNITY_DOUBLE number) but it is declared in unity_internals.h as void UnityPrintFloat(const UNITY_DOUBLE number). The parameter is marked as const in the header and not in the source which results in a compile time warning from MSVC at least. Please use const in the source as well as the header.

usr42 commented 7 years ago

Is that issue really referring to fff? Or is that issue meant for Unity instead?

dmcminniwc commented 7 years ago

Sorry, yes, it's meant to be unity.