[gtk+] Fix 'void function should not return void expression' warning for clang
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix 'void function should not return void expression' warning for clang
- Date: Sat, 13 Jun 2015 15:02:53 +0000 (UTC)
commit 41b6993a66a6173434d1bca3f71d2596f094b121
Author: Ting-Wei Lan <lantw src gnome org>
Date: Sat Jun 13 13:45:57 2015 +0800
Fix 'void function should not return void expression' warning for clang
https://bugzilla.gnome.org/show_bug.cgi?id=750888
gdk/gdkwindow.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 65db5e8..8edaa55 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -11084,7 +11084,10 @@ gdk_window_get_unscaled_size (GdkWindow *window,
impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
if (impl_class->get_unscaled_size)
- return impl_class->get_unscaled_size (window, unscaled_width, unscaled_height);
+ {
+ impl_class->get_unscaled_size (window, unscaled_width, unscaled_height);
+ return;
+ }
}
scale = gdk_window_get_scale_factor (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]