Bug 691149

Summary: Compile fails due to having return call a void function.
Product: Ghostscript Reporter: John Wehle <john>
Component: Build ProcessAssignee: Ralph Giles <ralph.giles>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: 8.71   
Hardware: Other   
OS: AIX   
Customer: Word Size: ---
Attachments: AIX Vac C patch for GS

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 .