summaryrefslogtreecommitdiffstats
path: root/Source/cmExportSet.h
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2014-04-14 16:13:19 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2014-04-14 18:43:10 (GMT)
commit3022f2a1ef94b2c12df09b0ca420b6c2951888e2 (patch)
tree6d5f65e502692fc5b7744d1be3d64fb09dde1d1b /Source/cmExportSet.h
parent11a6b3d59ad2f75890fcdc42ec13c7a9ee1463f0 (diff)
downloadCMake-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/cmExportSet.h')
0 files changed, 0 insertions, 0 deletions