From 01d0f64d1f396362fa532d04926bd90d3aa231c3 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 12 Jun 2013 00:02:43 -0700 Subject: [PATCH] Fix a couple simple C++ errors found by clang. --- Internal.hpp | 2 +- Parser.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Internal.hpp b/Internal.hpp index 34ad257..032f216 100644 --- a/Internal.hpp +++ b/Internal.hpp @@ -172,7 +172,7 @@ struct Functor : sig::sig_ffi_cif(pool_, &sig::ObjectiveC, &signature_, &cif_); } - void (*GetValue())() const { + void (*GetValue() const)() { return reinterpret_cast(value_); } diff --git a/Parser.hpp b/Parser.hpp index d915305..c9614ed 100644 --- a/Parser.hpp +++ b/Parser.hpp @@ -39,7 +39,7 @@ #include "Pooling.hpp" #include "Options.hpp" -class CYContext; +struct CYContext; struct CYThing { virtual ~CYThing() { -- 2.49.0