Skip to content

Commit

Permalink
Fixed unused results
Browse files Browse the repository at this point in the history
  • Loading branch information
drowaudio committed Dec 9, 2024
1 parent 9ef1190 commit 4b3fafc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/CrashHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ namespace
static void handleCrash (void*)
{
const char* header = "\n*** FAILED: VALIDATION CRASHED\n";
write (STDERR_FILENO, header, strlen (header));
[[ maybe_unused]] auto r = write (STDERR_FILENO, header, strlen (header));

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

Expand Down
4 changes: 2 additions & 2 deletions Source/native/pluginval_native_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ inline void writeAsyncSignalSafe (int fd, const char* fmt, ...)
va_end (args);

auto len = strlen (buf);
write (STDERR_FILENO, buf, len);
[[ maybe_unused]] auto r = write (STDERR_FILENO, buf, len);

if (fd != -1)
write (fd, buf, len);
[[ maybe_unused]] auto r2 = write (fd, buf, len);
}

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

0 comments on commit 4b3fafc

Please sign in to comment.