Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ odd error

odd error

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Frobozz   (75 posts)  Bio
Date Fri 26 Nov 2004 03:29 AM (UTC)
Message
make -s smaug
Compiling o/build.o....
cc1: warnings being treated as errors
build.c: In function `edit_buffer':
build.c:5419: warning: declaration of `x' shadows previous local
make[1]: *** [o/build.o] Error 1
make: *** [all] Error 2
Top

Posted by Frobozz   (75 posts)  Bio
Date Reply #1 on Fri 26 Nov 2004 03:35 AM (UTC)
Message
Was trying to edit the buffer to use this format snippet:

http://www.afkmud.com/scripts/download.php?file=Sadiq/Format.txt

Happy Thanksgiving to those that celebrate!
Top

Posted by Frobozz   (75 posts)  Bio
Date Reply #2 on Fri 26 Nov 2004 03:38 AM (UTC)
Message
Just trying to find out what the error means. Sorry for the three posts in 5 minutes, out of it!
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #3 on Fri 26 Nov 2004 06:54 PM (UTC)
Message
Wasn't this answered here recently?

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4895

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Frobozz   (75 posts)  Bio
Date Reply #4 on Fri 26 Nov 2004 10:12 PM (UTC)
Message
My apologies,

I didnt realize that -
warning: declaration of `x' shadows previous local
warning: declaration of `last_char' shadows global declaration

were the same thing.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #5 on Sat 27 Nov 2004 12:35 AM (UTC)
Message
It's not quite the same thing, but the difference is really trivial between this case and your previous problem. It's the same problem of variable shadowing.

e.g.
int a;
void foo()
{
  int a; // shadows previous global a
  while ( 1 )
  {
    int a; // shadows previous local a
  }
}

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


20,372 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.