diff options
author | Maciej Piechotka <uzytkownik2@gmail.com> | 2013-12-16 01:20:44 +0100 |
---|---|---|
committer | Maciej Piechotka <uzytkownik2@gmail.com> | 2013-12-16 01:20:44 +0100 |
commit | df6d40a3970edadba7f25f3b739ab64e31c05115 (patch) | |
tree | 67986c3927f9e1d001e65e418ec6315f4b436474 /utils | |
parent | 4da9e5e25596293634424ca78b322809338c2dd1 (diff) | |
download | libgee-df6d40a3970edadba7f25f3b739ab64e31c05115.tar.gz |
Fix unused variable warnings for HazardPointer
Diffstat (limited to 'utils')
-rw-r--r-- | utils/geeutils.vapi | 4 | ||||
-rw-r--r-- | utils/misc.h | 30 |
2 files changed, 34 insertions, 0 deletions
diff --git a/utils/geeutils.vapi b/utils/geeutils.vapi index f7d5de6..988a337 100644 --- a/utils/geeutils.vapi +++ b/utils/geeutils.vapi @@ -8,5 +8,9 @@ namespace Gee { [CCode (cheader_filename = "free.h")] public GLib.DestroyNotify get_destroy_notify<G> (); } + namespace Misc { + [CCode (cheader_filename = "misc.h", simple_generics = true)] + public void unused<G> (G unused); + } } } diff --git a/utils/misc.h b/utils/misc.h new file mode 100644 index 0000000..9584058 --- /dev/null +++ b/utils/misc.h @@ -0,0 +1,30 @@ +/* async.h + * + * Copyright (C) 2013 Maciej Piechotka + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Author: + * Maciej Piechotka <uzytkownik2@gmail.com> + */ +#ifndef GEE_UTILS_MISC +#define GEE_UTILS_MISC + +#include <glib.h> + +#define gee_utils_misc_unused(par) (void)par + +#endif + |