[all-commits] [llvm/llvm-project] 336b7a: [ObjCopy] Fix warning in conditional expression [NFC]
mikaelholmen via All-commits
all-commits at lists.llvm.org
Fri Sep 29 03:47:58 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 336b7a256bf886055c3040d09480900a9bdfb68a
https://github.com/llvm/llvm-project/commit/336b7a256bf886055c3040d09480900a9bdfb68a
Author: Mikael Holmen <mikael.holmen at ericsson.com>
Date: 2023-09-29 (Fri, 29 Sep 2023)
Changed paths:
M llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
Log Message:
-----------
[ObjCopy] Fix warning in conditional expression [NFC]
Without the fix gcc warned with
../lib/ObjCopy/ELF/ELFObjcopy.cpp: In function 'uint64_t getSectionFlagsPreserveMask(uint64_t, uint64_t, uint16_t)':
../lib/ObjCopy/ELF/ELFObjcopy.cpp:106:31: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
106 | ~(EMachine == EM_X86_64 ? ELF::SHF_X86_64_LARGE : 0UL);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the All-commits
mailing list