From 2737b200c6cb533272b4ac6b6da6bd930db40239 Mon Sep 17 00:00:00 2001 From: ibi sum Date: Sun, 25 Sep 2022 20:34:36 +0200 Subject: [PATCH] fix spurious void/int flush() override --- aJSON.cpp | 4 ++-- aJSON.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aJSON.cpp b/aJSON.cpp index 1bb9320..30bb81d 100644 --- a/aJSON.cpp +++ b/aJSON.cpp @@ -510,7 +510,7 @@ aJsonStream::skip() // Utility to flush our buffer in case it contains garbage // since the parser will return the buffer untouched if it // cannot understand it. -int +void aJsonStream::flush() { int in = this->getch(); @@ -518,7 +518,7 @@ aJsonStream::flush() { in = this->getch(); } - return EOF; + return; } diff --git a/aJSON.h b/aJSON.h index a409a92..8f60c2f 100644 --- a/aJSON.h +++ b/aJSON.h @@ -89,7 +89,7 @@ class aJsonStream : public Print { int printString(aJsonObject *item); int skip(); - int flush(); + void flush(); int parseValue(aJsonObject *item, char** filter); int printValue(aJsonObject *item);