From d9df2815e3c3e32a6a36b0569920459cd1e686b4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 4 Sep 2014 02:24:13 +0200 Subject: fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libgamma-method.hh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/libgamma-method.hh') diff --git a/src/libgamma-method.hh b/src/libgamma-method.hh index aedf6f6..d4bfed3 100644 --- a/src/libgamma-method.hh +++ b/src/libgamma-method.hh @@ -26,6 +26,12 @@ #include "libgamma-error.hh" +#ifndef __GCC__ +# define __attribute__(X) /* emtpy */ +#endif + + + namespace libgamma { /** @@ -102,7 +108,7 @@ namespace libgamma /** * Destructor. */ - ~MethodCapabilities(); + ~MethodCapabilities() __attribute__((const)); /** * Copy operator. -- cgit v1.2.3-70-g09d2