Skip to content

Commit e29063b

Browse files
committed
[NFC] Suppress "warning: ignoring return value"
1 parent df5ccf5 commit e29063b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/lib/profile/InstrProfilingFile.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ static int doProfileMerging(FILE *ProfileFile, int *MergeDone) {
265265

266266
// Truncate the file in case merging of value profile did not happend to
267267
// prevent from leaving garbage data at the end of the profile file.
268-
COMPILER_RT_FTRUNCATE(ProfileFile, __llvm_profile_get_size_for_buffer());
268+
(void)COMPILER_RT_FTRUNCATE(ProfileFile,
269+
__llvm_profile_get_size_for_buffer());
269270

270271
(void)munmap(ProfileBuffer, ProfileFileSize);
271272
*MergeDone = 1;

0 commit comments

Comments
 (0)