After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 708461 - BRP E: epiphany no-return-in-nonvoid-function ephy-navigation-history-action.c:659
BRP E: epiphany no-return-in-nonvoid-function ephy-navigation-history-action...
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: General
3.9.x
Other Windows
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-09-20 14:34 UTC by Dominique Leuenberger
Modified: 2013-09-26 17:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dominique Leuenberger 2013-09-20 14:34:50 UTC
the function

static gboolean
tool_button_press_event_cb (GtkButton *button,
                            GdkEventButton *event,
                            EphyNavigationHistoryAction *action)
{
  if (event->button == 1) {
    [...]
    return FALSE;
  } else if (event->button == 3) {
    [...]
    return TRUE;
  }
}

Triggers compiler warnings which are raised by build root policy enforcement on openSUSE to errors 
I: Program returns random data in a function

The compiler is 'right' as there is plenty of 'room' to reach the end of the function wihtout a return statement...