From 5e4dfe69a667d7899a31bcfeae59590575dda943 Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Thu, 22 Dec 2022 12:28:57 +0000 Subject: [PATCH] build: Fix warnings in auxiliary files --- build-support/compiler-workarounds/ostream-operator-nullptr.h | 2 +- build-support/empty-main.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build-support/compiler-workarounds/ostream-operator-nullptr.h b/build-support/compiler-workarounds/ostream-operator-nullptr.h index e13efe342..feb6b48b7 100644 --- a/build-support/compiler-workarounds/ostream-operator-nullptr.h +++ b/build-support/compiler-workarounds/ostream-operator-nullptr.h @@ -7,7 +7,7 @@ namespace std { inline std::ostream& -operator<<(std::ostream& os, std::nullptr_t ptr) +operator<<(std::ostream& os, std::nullptr_t) { return os << "nullptr"; // whatever you want nullptr to show up as in the console } diff --git a/build-support/empty-main.cc b/build-support/empty-main.cc index df67b9156..1949917ac 100644 --- a/build-support/empty-main.cc +++ b/build-support/empty-main.cc @@ -1,4 +1,5 @@ int main() { + return 0; }