Blizzard of errors from tests/ntpd/nts on 32 bit systems

Hal Murray hmurray at megapathdsl.net
Fri Feb 22 08:28:37 UTC 2019


[161/208] Compiling tests/ntpd/nts.c
In file included from ../../tests/unity/unity.h:16:0,
                 from ../../tests/ntpd/nts.c:3:
../../tests/ntpd/nts.c: In function ‘TEST_nts_nts_append_record_null_’:
../../tests/unity/unity_internals.h:658:121: warning: cast from pointer to 
integer of different size [-Wpointer-to-int-cast]
 #define UNITY_TEST_ASSERT_EQUAL_INT(expected, actual, line, message)          
                   UnityAssertEqualNumber((UNITY_INT)(expected), 
(UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), 
UNITY_DISPLAY_STYLE_INT)

                                        ^
../../tests/unity/unity.h:133:100: note: in expansion of macro 
‘UNITY_TEST_ASSERT_EQUAL_INT’
 #define TEST_ASSERT_EQUAL(expected, actual)                                   
                     UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), 
__LINE__, NULL)
                                                                               
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../tests/ntpd/nts.c:28:3: note: in expansion of macro 
‘TEST_ASSERT_EQUAL’
   TEST_ASSERT_EQUAL(cursor.next, &buf[4]);
   ^~~~~~~~~~~~~~~~~
../../tests/unity/unity_internals.h:658:144: warning: cast from pointer to 
integer of different size [-Wpointer-to-int-cast]


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list