Skip to content

Warnings when run with -rT #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
relrod opened this issue Nov 30, 2009 · 0 comments
Open

Warnings when run with -rT #1

relrod opened this issue Nov 30, 2009 · 0 comments

Comments

@relrod
Copy link
Owner

relrod commented Nov 30, 2009

We get warnings when we use pike -rT to run Spike. Most of them are easy to fix, and I'll do it when I get around to it. Patches are welcome :P.

$ pike -rT bot.pike

bot.pike:32: Warning: Unused local variable ping.
bot.pike:22: Warning: Bad argument 1 to foreach().
bot.pike:22: Warning: Expected: array(string).
bot.pike:22: Warning: Got     : array.
bot.pike:27: Warning: An expression of type mixed cannot be assigned to a variable of type string.
bot.pike:39: Warning: Type mismatch in argument 1 to sendln.
bot.pike:39: Warning: Expected: string.
bot.pike:39: Warning: Got     : string | int | float | mixed.
bot.pike:44: Warning: Type mismatch in argument 1 to sendln.
bot.pike:44: Warning: Expected: string.
bot.pike:44: Warning: Got     : string | int | float | mixed.
bot.pike:47: Warning: Type mismatch in argument 1 to sendln.
bot.pike:47: Warning: Expected: string.
bot.pike:47: Warning: Got     : string | mixed.
bot.pike:50: Warning: Type mismatch in argument 2 to split2.
bot.pike:50: Warning: Expected: string.
bot.pike:50: Warning: Got     : mixed.
bot.pike:51: Warning: Type mismatch in argument 1 to sendln.
bot.pike:51: Warning: Expected: string.
bot.pike:51: Warning: Got     : string | mixed.
bot.pike:55: Warning: Type mismatch in argument 2 to split2.
bot.pike:55: Warning: Expected: string.
bot.pike:55: Warning: Got     : mixed.
bot.pike:56: Warning: Type mismatch in argument 1 to replace.
bot.pike:56: Warning: Expected: array | mapping | string.
bot.pike:56: Warning: Got     : mixed.
bot.pike:56: Warning: Type mismatch in argument 1 to replace.
bot.pike:56: Warning: Expected: array | mapping | string.
bot.pike:56: Warning: Got     : string | mixed.
bot.pike:56: Warning: Type mismatch in argument 1 to sendln.
bot.pike:56: Warning: Expected: string.
bot.pike:56: Warning: Got     : string | mixed.
<- NICK Spike
<- USER spike spike spike spike
<- JOIN #bots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant