diff options
author | Brad King <brad.king@kitware.com> | 2012-01-04 16:54:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-01-04 16:54:51 (GMT) |
commit | 65b6e19a35c1bde5ee3c132ade076ee5f42e6559 (patch) | |
tree | b2257e4496e9b0acd00d412c907fb86a8cd9fc4b /Utilities/cmlibarchive/build | |
parent | 9ccaeb10f9fd58503c8a7e1535f2c9154e3e8c93 (diff) | |
download | CMake-65b6e19a35c1bde5ee3c132ade076ee5f42e6559.zip CMake-65b6e19a35c1bde5ee3c132ade076ee5f42e6559.tar.gz CMake-65b6e19a35c1bde5ee3c132ade076ee5f42e6559.tar.bz2 |
libarchive: Avoid bogus conversion warning from PGI compiler
We cannot suppress PGI compiler warnings completely because even with
the "-w" flag the compiler still writes a message containing "compilation
completed with warnings" to stderr.
A warning is triggered by expressions like
test ? NULL : ptr_to_const_char
test ? ".." : ptr_to_const_char
that the PGI compiler handles incorrectly. It chooses the pointer type
of the first option (either void* or char*) and warns about conversion
of the second without a cast. Flip the expression logic to
!test ? ptr_to_const_char : NULL
!test ? ptr_to_const_char : ".."
to help the compiler choose the proper result type.
Diffstat (limited to 'Utilities/cmlibarchive/build')
0 files changed, 0 insertions, 0 deletions