Bug 81681

Summary: bad source code
Product: [Retired] Red Hat Linux Reporter: d.binderman
Component: ggvAssignee: Jonathan Blandford <jrb>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: ddumas
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-15 23:05:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description d.binderman 2003-01-12 18:39:01 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk  (Win98; I)

Description of problem:

Hello there,

I just tried to compile package ggv-1.99.9-4 from Redhat 8.0

The compiler said

ggv-postscript-view.c:339: warning: `return' with no value, in function returning non-void

Here is an untested patch to shut up the compiler

*** ./bonobo/ggv-postscript-view.c.old	2003-01-05 11:14:31.000000000 +0000
--- ./bonobo/ggv-postscript-view.c	2003-01-05 11:15:20.000000000 +0000
***************
*** 336,342 ****
  	if((fd = mkstemp(ps_view->priv->tmp_name)) < 0) {
  		g_free(ps_view->priv->tmp_name),
  		ps_view->priv->tmp_name = NULL;
! 		return;
  	}
  	tmpfile = fdopen(fd, "w");
  	if(!tmpfile) {
--- 336,342 ----
  	if((fd = mkstemp(ps_view->priv->tmp_name)) < 0) {
  		g_free(ps_view->priv->tmp_name),
  		ps_view->priv->tmp_name = NULL;
! 		return NULL;
  	}
  	tmpfile = fdopen(fd, "w");
  	if(!tmpfile) {

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. compile with usual C compiler.
2.
3.
    

Additional info

Comment 1 Jonathan Blandford 2003-01-15 23:05:34 UTC
Fixed upstream.  Next time we pull a newer version in, we'll fix it.  mkstemp
almost never fails so this is a low priority.