diff options
-rw-r--r-- | glib/src/variant.ccg | 2 | ||||
-rw-r--r-- | glib/src/variant.hg | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/glib/src/variant.ccg b/glib/src/variant.ccg index a645143f..856fe461 100644 --- a/glib/src/variant.ccg +++ b/glib/src/variant.ccg @@ -253,7 +253,7 @@ _DEPRECATE_IFDEF_END VariantBase::operator bool() const { - return gobj() ? GINT_TO_POINTER(1) : nullptr; + return gobj() != nullptr; } void diff --git a/glib/src/variant.hg b/glib/src/variant.hg index f4503e26..4fe57191 100644 --- a/glib/src/variant.hg +++ b/glib/src/variant.hg @@ -1624,9 +1624,8 @@ namespace detail { // swallows any argument template <class T> -constexpr int any_arg(T&& arg) +constexpr int any_arg(T&& /* arg */) { - (void)arg; return 0; } |