compiler warning in invariant_checker_test.cpp

7 views
Skip to first unread message

Prasun Ratn

unread,
May 8, 2023, 3:08:42 AM5/8/23
to DynamoRIO Users
I saw this warning in the 32-bit build and thought I'd inform the group

dynamorio/clients/drcachesim/tests/invariant_checker_test.cpp: In function ‘bool {anonymous}::check_duplicate_syscall_with_same_pc()’:
dynamorio/clients/drcachesim/tests/invariant_checker_test.cpp:594:29: warning: unsigned conversion from ‘long long int’ to ‘addr_t’ {aka ‘unsigned int’} changes value from ‘140528035158505’ to ‘1000200681’
[-Woverflow]
  594 |     constexpr addr_t ADDR = 0x7fcf3b9dd9e9;
      |                             ^~~~~~~~~~~~~~

Sahil Gupta

unread,
May 10, 2023, 11:24:18 PM5/10/23
to DynamoRIO Users
Thank you for pointing this out. I have opened an issue for this, and will get it resolved: https://github.com/DynamoRIO/dynamorio/issues/6040
Reply all
Reply to author
Forward
0 new messages