Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
AFKMud 2.2.2
Mar 3, 2019 5:35 pm
By Samson
Development
Nov 28, 2018 12:10 pm
By Keirath
First Immortal
Oct 12, 2018 2:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018 7:31 pm
By joeyfogas
question on overland code
May 31, 2018 12:03 pm
By joeyfogas
SmaugFUSS 1.9.3
Author: Various
Submitted by: Samson
AFKMud 2.2.2
Author: AFKMud Team
Submitted by: Samson
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Bing, Sogou

Members: 0
Guests: 15
Stats
Files
Topics
Posts
Members
Newest Member
483
3,743
19,401
655
RodrickMci
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds » Codebases » SWR FUSS » Compile Error
Forum Rules | Mark all | Recent Posts

Compile Error
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Feb 27, 2008 7:54 pm
Go to the top of the page
Go to the bottom of the page

Zastko
Fledgling
GroupMembers
Posts2
JoinedFeb 27, 2008

So I'm getting this error when compiling:

make -s swr
Compiling o/act_info.o....
cc1plus: warnings being treated as errors
act_info.c: In function âvoid do_who(CHAR_DATA*, char*)â:
act_info.c:2084: warning: format not a string literal and no format arguments
make[1]: *** [o/act_info.o] Error 1
make: *** [all] Error 2


any idea?
       
Post is unread #2 Feb 27, 2008 8:57 pm
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

It would help to show us the line in question. :smile:
       
Post is unread #3 Feb 27, 2008 11:27 pm
Go to the top of the page
Go to the bottom of the page

Zastko
Fledgling
GroupMembers
Posts2
JoinedFeb 27, 2008

I fixed that error actually haha now I have this awesome error :D

make -s swr
Compiling o/comm.o....
cc1plus: warnings being treated as errors
comm.c:60: warning: overflow in implicit constant conversion
comm.c:60: warning: overflow in implicit constant conversion
comm.c:61: warning: overflow in implicit constant conversion
comm.c:61: warning: overflow in implicit constant conversion
comm.c:62: warning: overflow in implicit constant conversion
comm.c:62: warning: overflow in implicit constant conversion
make[1]: *** [o/comm.o] Error 1
make: *** [all] Error 2



line 60, 61, and 62:

const char echo_off_str [] = { IAC, WILL, TELOPT_ECHO, '\0' };
const char echo_on_str [] = { IAC, WONT, TELOPT_ECHO, '\0' };
const char go_ahead_str [] = { IAC, GA, '\0' };
       
Post is unread #4 Feb 28, 2008 12:18 pm
Go to the top of the page
Go to the bottom of the page

Noplex
Apprentice
GroupMembers
Posts62
JoinedAug 30, 2005

What system are you compiling on?

That warning means you're trying to assign a value greater than the datatype (e.g. trying to assign 80,000 to a short integer).
       
Post is unread #5 Feb 28, 2008 4:01 pm
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

Wasn't this covered just yesterday too on the MudBytes forums? :wink: In fact, by the same person! (forum thread)

Typically, if you cross-post, it is useful to say so in one of the posts, so that people know that this is a duplicate question.
       
Pages:<< prev 1 next >>