Skip to content

Commit 4b3fafc

Browse files
committed
Fixed unused results
1 parent 9ef1190 commit 4b3fafc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Source/CrashHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace
4747
static void handleCrash (void*)
4848
{
4949
const char* header = "\n*** FAILED: VALIDATION CRASHED\n";
50-
write (STDERR_FILENO, header, strlen (header));
50+
[[ maybe_unused]] auto r = write (STDERR_FILENO, header, strlen (header));
5151

5252
writeStackTrace (crashLogPath, 2); // Skip handleCrash and juce::handleCrash)
5353

Source/native/pluginval_native_posix.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ inline void writeAsyncSignalSafe (int fd, const char* fmt, ...)
4040
va_end (args);
4141

4242
auto len = strlen (buf);
43-
write (STDERR_FILENO, buf, len);
43+
[[ maybe_unused]] auto r = write (STDERR_FILENO, buf, len);
4444

4545
if (fd != -1)
46-
write (fd, buf, len);
46+
[[ maybe_unused]] auto r2 = write (fd, buf, len);
4747
}
4848

4949
/** Writes the current stack trace and images to a given filepath and stderr.

0 commit comments

Comments
 (0)