Bug 81681 - bad source code
bad source code
Status: CLOSED WONTFIX
Product: Red Hat Linux
Classification: Retired
Component: ggv (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jonathan Blandford
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-01-12 13:39 EST by d.binderman
Modified: 2013-04-02 00:17 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-01-15 18:05:34 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description d.binderman 2003-01-12 13:39:01 EST
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 18:05:34 EST
Fixed upstream.  Next time we pull a newer version in, we'll fix it.  mkstemp
almost never fails so this is a low priority.

Note You need to log in before you can comment on or make changes to this bug.