forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ps2sdk compiler warning fixes and pfsDopen wrapper

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> Patch Submissions
View previous topic :: View next topic  
Author Message
ragnarok2040



Joined: 09 Aug 2006
Posts: 230

PostPosted: Sun Jan 04, 2009 2:39 pm    Post subject: ps2sdk compiler warning fixes and pfsDopen wrapper Reply with quote

I made a patch to fix some compiler warnings when I went to look at the iomanx/pfs/fio code.

Code:

Changelog:
I initialized some return variables in stdio.c.
I added a pfsDopen wrapper for pfsOpen in iop/hdd/pfs/src/pfs_fio.c to fix an incompatible pointer warning for iomanx.
I redefined the erl_loader_t type in the ee/erl code and some function parameters to remove the warnings about losing the const qualifier.
I added some -fno-builtin-(symbol) flags to EE_LDFLAGS to the ee/erl-loader/Makefile since all of the symbols used aren't builtin versions.
I also commented out the full line of rm $(EE_SRC_DIR)exports.c so it doesn't appear during make.
I removed the dereference of the return of sio_gets in iop/debug/sior/src/sior.c.
I casted ret to (char*) in ee/rpc/sior/src/sior_rpc.c for the return of sio_gets.
I converted the imports.lst of iop/tcpip/tcpips to win32 line endings to remove the 'no newline at end of file' warning.
I casted the char subscripts in iop/sound/ahx/src/AHX.c to int.
I added the declaration of an external fptosi symbol in ee/math/src/sinf.c

The only thing that makes me a little nervous is the sio_gets fix for the sior rpc server/client, but I'm pretty sure it will still work.
Now all that's left are the short loop warnings from the assembler. Since those aren't bugs, I'll leave them alone.

Patch:
http://homebrew.thewaffleiron.net/ragnarok2040/ps2sdk.patch.tar.bz2
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Mon Jan 05, 2009 9:46 am    Post subject: Reply with quote

Code:
Sending        ee/erl/include/erl.h
Sending        ee/erl/src/erl.c
Sending        ee/erl-loader/Makefile
Sending        ee/libc/src/stdio.c
Sending        ee/math/src/sinf.c
Sending        ee/rpc/sior/src/sior_rpc.c
Sending        iop/debug/sior/src/sior.c
Sending        iop/hdd/pfs/src/pfs.c
Sending        iop/hdd/pfs/src/pfs_fio.c
Sending        iop/sound/ahx/src/AHX.c
Sending        iop/tcpip/tcpips/src/imports.lst
Transmitting file data ...........
Committed revision 1491.

Committed!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> Patch Submissions All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group