Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=e657e9e95153ed718ba281642f7c8fab9f902c65
commit e657e9e95153ed718ba281642f7c8fab9f902c65 Author: Michel Hermier <[email protected]> Date: Fri Aug 1 11:18:22 2014 +0200 libpacman: Remove warning "defined but unused", by inlining. diff --git a/lib/libpacman/pacman_p.h b/lib/libpacman/pacman_p.h index 3f85e76..4656348 100644 --- a/lib/libpacman/pacman_p.h +++ b/lib/libpacman/pacman_p.h @@ -23,11 +23,11 @@ #include "pacman.h" -#define DEFINE_CAST(c_type, cxx_type) \ -static c_type *c_cast(cxx_type *obj) \ -{ return (c_type *)obj; } \ - \ -static cxx_type *cxx_cast(c_type *obj) \ +#define DEFINE_CAST(c_type, cxx_type) \ +static inline c_type *c_cast(cxx_type *obj) \ +{ return (c_type *)obj; } \ + \ +static inline cxx_type *cxx_cast(c_type *obj) \ { return (cxx_type *)obj; } namespace libpacman { _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
