Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 parse description bug
Yesterday, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » GCC4.4 Compliance
Forum Rules | Mark all | Recent Posts

GCC4.4 Compliance
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Sep 1, 2009, 12:39 pm
Go to the top of the page
Go to the bottom of the page

Keirath
Magician
GroupMembers
Posts144
JoinedJan 24, 2008

I got bored so was messing around with the stock SWR1.2 FUSS base and decided to update it to include the bugfixes since the latest update, as well as including the GCC 4.4 compliance. Well, firstly, there is no mudstrlcpy function in swr12fuss. So that causes a problem, although minor and easy to fix..

Also this code:
  sptr = one_argument( sptr, word1 );
         sptr = one_argument( sptr, word2 );

Outputs this error:
build.c:4809: error: passing argument 1 of 'one_argument' discards qualifiers from pointer target type
build.c:4810: error: passing argument 1 of 'one_argument' discards qualifiers from pointer target type


I know this is what the SMAUG code looks like, which compiles fine. Not sure why it doesn't compile in SWR. Any ideas?
       
Post is unread #2 Sep 1, 2009, 12:56 pm
Go to the top of the page
Go to the bottom of the page

Keirath
Magician
GroupMembers
Posts144
JoinedJan 24, 2008

Figured it out. Will post a fix for it shortly
       
Post is unread #3 Sep 1, 2009, 2:00 pm
Go to the top of the page
Go to the bottom of the page

Keirath
Magician
GroupMembers
Posts144
JoinedJan 24, 2008

Well I thought i was going to. Running into more problems though. Trying to fix up one_argument like it is in FUSS but that opens all sorts of stuff. I'll get to it ASAP
       
Post is unread #4 Sep 1, 2009, 3:17 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,866
JoinedJul 26, 2005

Lol you have your work cut out for you if your doing that whole const char* converstion.
       
Post is unread #5 Sep 1, 2009, 5:14 pm
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

Remcon is right... this is not an easy fix, and although for the most part it is merely tedious and repetitive, there are a few tricky spots that are pretty easy to mess up in subtle ways. (Doing them incorrectly can result in memory leaks, crashes, etc.)
       
Post is unread #6 Sep 2, 2009, 12:42 am
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Erm.. SWR 1.2 FUSS was replaced with SWR 1.3 FUSS. 1.3 is also already const char converted and gcc 4.4 compliant.
       
Post is unread #7 Sep 2, 2009, 1:12 pm
Go to the top of the page
Go to the bottom of the page

Keirath
Magician
GroupMembers
Posts144
JoinedJan 24, 2008

Doh. How did I miss that. My bad.

*facepalm*
       
Post is unread #8 Sep 2, 2009, 1:23 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,866
JoinedJul 26, 2005

Lol I noticed it when you posted, but I figured you just wanted to fix up a SWR 1.2 to use :) you never know lol.
       
Post is unread #9 Sep 2, 2009, 2:04 pm
Go to the top of the page
Go to the bottom of the page

Keirath
Magician
GroupMembers
Posts144
JoinedJan 24, 2008

I was sitting here messing around and was like why hasn't SWR been updated? 1.2 is the latest version? I thought it was 1.3, whatever. I'll update it.

I feel like a newb.
       
Pages:<< prev 1 next >>