diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-14 16:13:19 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-14 18:43:10 (GMT) |
commit | 3022f2a1ef94b2c12df09b0ca420b6c2951888e2 (patch) | |
tree | 6d5f65e502692fc5b7744d1be3d64fb09dde1d1b /Source/cmDefinePropertyCommand.cxx | |
parent | 11a6b3d59ad2f75890fcdc42ec13c7a9ee1463f0 (diff) | |
download | CMake-3022f2a1ef94b2c12df09b0ca420b6c2951888e2.zip CMake-3022f2a1ef94b2c12df09b0ca420b6c2951888e2.tar.gz CMake-3022f2a1ef94b2c12df09b0ca420b6c2951888e2.tar.bz2 |
cmELF: fix signedness warning on OpenBSD
OpenBSD defines Elf64_Dyn::d_tag to be of an unsigned type, which differs from
what most other platforms do and what is the case for 32 bit. To have the tag
as unsigned makes sense, but this causes a compilation warning:
/.../CMake/Source/cmELF.cxx: In member function 'const cmELF::StringEntry* cmELFInternalImpl<Types>::GetDynamicSectionString(int) [with Types = cmELFTypes64]':
/.../CMake/Source/cmELF.cxx:945: instantiated from here
/.../CMake/Source/cmELF.cxx:668: warning: comparison between signed and unsigned integer expressions
Add an explicit typedef to cast the value to for 32 and 64 bit. That type is
unsigned and has the proper length for both platforms so no information is
lost. Explicitely cast both arguments before comparing them to avoid the
warning in all situations.
Diffstat (limited to 'Source/cmDefinePropertyCommand.cxx')
0 files changed, 0 insertions, 0 deletions