Skip to content

Warnings on 32-bit builds from tests/ntpd/nts.c

See https://gitlab.com/NTPsec/ntpsec/-/jobs/165985434 for an example.

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]
 #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/ntpd/nts.c: In function 'TEST_nts_nts_append_record_uint16_':
../../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:47: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]
 #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:47:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[4]);
   ^~~~~~~~~~~~~~~~~
../../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:56: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]
 #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:56:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[4]);
   ^~~~~~~~~~~~~~~~~
../../tests/ntpd/nts.c: In function 'TEST_nts_nts_append_record_bytes_':
../../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:80:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[8]);
   ^~~~~~~~~~~~~~~~~
../../tests/unity/unity_internals.h:658:144: 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:80:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[8]);
   ^~~~~~~~~~~~~~~~~
../../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:89:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[8]);
   ^~~~~~~~~~~~~~~~~
../../tests/unity/unity_internals.h:658:144: 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:89:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[8]);
   ^~~~~~~~~~~~~~~~~
../../tests/ntpd/nts.c: In function 'TEST_nts_nts_append_header_':
../../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:108: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]
 #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:108:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[4]);
   ^~~~~~~~~~~~~~~~~
../../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:117: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]
 #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:117:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[4]);
   ^~~~~~~~~~~~~~~~~
../../tests/ntpd/nts.c: In function 'TEST_nts_nts_append_uint16_':
../../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:134:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[2]);
   ^~~~~~~~~~~~~~~~~
../../tests/unity/unity_internals.h:658:144: 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:134:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[2]);
   ^~~~~~~~~~~~~~~~~
../../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:143:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[2]);
   ^~~~~~~~~~~~~~~~~
../../tests/unity/unity_internals.h:658:144: 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:143:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[2]);
   ^~~~~~~~~~~~~~~~~
../../tests/ntpd/nts.c: In function 'TEST_nts_nts_append_bytes_':
../../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:165:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[6]);
   ^~~~~~~~~~~~~~~~~
../../tests/unity/unity_internals.h:658:144: 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:165:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[6]);
   ^~~~~~~~~~~~~~~~~
../../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:174:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[6]);
   ^~~~~~~~~~~~~~~~~
../../tests/unity/unity_internals.h:658:144: 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:174:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[6]);
   ^~~~~~~~~~~~~~~~~
../../tests/ntpd/nts.c: In function 'TEST_nts_nts_next_record_':
../../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:192: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]
 #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:192:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[4]);
   ^~~~~~~~~~~~~~~~~
../../tests/ntpd/nts.c: In function 'TEST_nts_nts_next_uint16_':
../../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:208:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[2]);
   ^~~~~~~~~~~~~~~~~
../../tests/unity/unity_internals.h:658:144: 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:208:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[2]);
   ^~~~~~~~~~~~~~~~~
../../tests/ntpd/nts.c: In function 'TEST_nts_nts_next_bytes_':
../../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:233:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[8]);
   ^~~~~~~~~~~~~~~~~
../../tests/unity/unity_internals.h:658:144: 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:233:3: note: in expansion of macro 'TEST_ASSERT_EQUAL'
   TEST_ASSERT_EQUAL(cursor.next, &buf[8]);
   ^~~~~~~~~~~~~~~~~

/cc @hal.murray @ianbruene