I wanted to compile my unit tests with -WConversion but it failed with:
...
MyRunner_Runner.c:95:35: error: conversion to ‘UNITY_UINT’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Werror=sign-conversion]
95 | Unity.CurrentTestLineNumber = line_num;
| ^~~~~~~~
I wanted to compile my unit tests with
-WConversion
but it failed with:Adding an explicit cast before fixes the problem.