From: Jay Freeman (saurik) Date: Wed, 12 Jun 2013 07:02:43 +0000 (-0700) Subject: Fix a couple simple C++ errors found by clang. X-Git-Tag: v0.9.500%b1~111 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/01d0f64d1f396362fa532d04926bd90d3aa231c3?hp=3a8ac5484c464ec0542fc4edd4a1723bd0fd132a Fix a couple simple C++ errors found by clang. --- 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() {