Bug 134150 - pan-0.14.2-82: returning pointer to local variable
Summary: pan-0.14.2-82: returning pointer to local variable
Status: RESOLVED INVALID
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: All SuSE Linux 10.0
: P5 - None : Minor
Target Milestone: ---
Assignee: Daniel Rahn
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-17 11:28 UTC by David Binderman
Modified: 2005-11-17 12:02 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2005-11-17 11:28:17 UTC
I just tried to compile package pan-0.14.2-82 with the Intel C 
compiler.

It said

gmime-message-partial.c(419): warning #1251: returning pointer to local variable

The source code is

                return &message;

but

GMimeMessage **
g_mime_message_partial_split_message (GMimeMessage *message, size_t max_size, size_t *nparts)
{

so message is one of the parameters of the routine. Suggest code rework.

BTW, the email address of the author [ e.Messiah@superpimp.org ] appears to 
be broken.
Comment 1 Daniel Rahn 2005-11-17 11:46:31 UTC
We do not support the Intel C Compiler currently.
If you need PAN to compile with the Intel C Compiler, you should contact the upstream package authors / maintainers.

See the project homepage at:

http://pan.rebelbase.com/

You should use the mailinglist listed there to report anything, suggestedly pan-devel. 
Comment 2 David Binderman 2005-11-17 12:02:47 UTC
(In reply to comment #1)
> We do not support the Intel C Compiler currently.
> If you need PAN to compile with the Intel C Compiler, you should contact the
> upstream package authors / maintainers.

I don't need PAN to be compilable with Intel C compiler,
I am just using it to find bugs.

GNU C compiler will also find this PAN bug I think.

> You should use the mailinglist listed there to report anything, suggestedly
> pan-devel. 

It seems like I need to set up an account to send in a bug report.

I don't think I'll bother. Thanks anyway.