Bug 691149 - Compile fails due to having return call a void function.
Summary: Compile fails due to having return call a void function.
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: 8.71
Hardware: Other AIX
: P4 normal
Assignee: Ralph Giles
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-26 15:15 UTC by John Wehle
Modified: 2010-02-28 15:04 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
AIX Vac C patch for GS (1.60 KB, patch)
2010-02-26 15:18 UTC, John Wehle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Wehle 2010-02-26 15:15:20 UTC
The vac C compiler on AIX 5.2 throws an error such as:

"./base/gdevpx.c", line 734.42: 1506-068 (S) Operation between types "void" and
"void" is not allowed.

if you attempt to have return call a void function.  Fixed with supplied patch.
Comment 1 John Wehle 2010-02-26 15:18:19 UTC
Created attachment 5994 [details]
AIX Vac C patch for GS
Comment 2 Hin-Tak Leung 2010-02-27 10:37:33 UTC
base/gdevpx.c - the two chunks are fine. I think it was also flagged by
coverity. Historically the routine was of type void and when I needed to fork
off 2 different versions of it (*_RLE and *_DeltaRow) I just added more logic to
switch between the two; somewhat undecided about whether to return a value.

Somebody else please review the 3rd chunk in the garbage collector code.  
Comment 3 Alex Cherepanov 2010-02-28 13:36:30 UTC
The last chunk has already been fixed by the rev. 10826.
Comment 4 Hin-Tak Leung 2010-02-28 15:04:13 UTC
Committed the first two chunks as r10827 .