From 3b9d035fb5c74d603b9d4a9fbe425b5d951ddca4 Mon Sep 17 00:00:00 2001 From: Tom Collins Date: Wed, 15 Jul 2020 17:02:49 -0700 Subject: [PATCH] cleanup: quiet PRGetLastErrorText() compiler warning --- include/pinproc.h | 2 +- src/pinproc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pinproc.h b/include/pinproc.h index 2f465c5..ccc2fe8 100644 --- a/include/pinproc.h +++ b/include/pinproc.h @@ -351,7 +351,7 @@ PINPROC_API void PRLogSetCallback(PRLogCallback callback); /**< Replaces the def PINPROC_API void PRLogSetLevel(PRLogLevel level); -PINPROC_API const char *PRGetLastErrorText(); +PINPROC_API const char *PRGetLastErrorText(void); /** * @defgroup device Device Creation & Deletion diff --git a/src/pinproc.cpp b/src/pinproc.cpp index c59313c..3d682ac 100644 --- a/src/pinproc.cpp +++ b/src/pinproc.cpp @@ -82,7 +82,7 @@ void PRSetLastErrorText(const char *format, ...) PRLog(kPRLogError, "%s\n", lastErrorText); } -const char *PRGetLastErrorText() +const char *PRGetLastErrorText(void) { return lastErrorText; }