[compiler-rt] e29063b - [NFC] Suppress "warning: ignoring return value"
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 26 14:33:08 PST 2021
Author: Vitaly Buka
Date: 2021-02-26T14:32:54-08:00
New Revision: e29063b16edfa3d98d34d0d15afa44519c47b781
URL: https://github.com/llvm/llvm-project/commit/e29063b16edfa3d98d34d0d15afa44519c47b781
DIFF: https://github.com/llvm/llvm-project/commit/e29063b16edfa3d98d34d0d15afa44519c47b781.diff
LOG: [NFC] Suppress "warning: ignoring return value"
Added:
Modified:
compiler-rt/lib/profile/InstrProfilingFile.c
Removed:
################################################################################
diff --git a/compiler-rt/lib/profile/InstrProfilingFile.c b/compiler-rt/lib/profile/InstrProfilingFile.c
index 656df480ba2c..c74a5962fd9f 100644
--- a/compiler-rt/lib/profile/InstrProfilingFile.c
+++ b/compiler-rt/lib/profile/InstrProfilingFile.c
@@ -265,7 +265,8 @@ static int doProfileMerging(FILE *ProfileFile, int *MergeDone) {
// Truncate the file in case merging of value profile did not happend to
// prevent from leaving garbage data at the end of the profile file.
- COMPILER_RT_FTRUNCATE(ProfileFile, __llvm_profile_get_size_for_buffer());
+ (void)COMPILER_RT_FTRUNCATE(ProfileFile,
+ __llvm_profile_get_size_for_buffer());
(void)munmap(ProfileBuffer, ProfileFileSize);
*MergeDone = 1;
More information about the llvm-commits
mailing list