Skip to content
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

Compilation errors in space_border.c, function addNewBorder #10

Closed
DieterKoblenz opened this issue Nov 12, 2017 · 2 comments
Closed

Compilation errors in space_border.c, function addNewBorder #10

DieterKoblenz opened this issue Nov 12, 2017 · 2 comments

Comments

@DieterKoblenz
Copy link

space_border.c: In function ‘addNewBorder’: space_border.c:16:25: warning: unused parameter ‘executor’ [-Wunused-parameter] void addNewBorder(dbref executor, int border_number, const char* name, double radius, double x, double y, double z, char *buff, char **bp) ^ space_border.c: In function ‘edit_border’: space_border.c:102:24: warning: unused parameter ‘executor’ [-Wunused-parameter] void edit_border(dbref executor, int border_id, const char* setting, const char* new_value, char *buff, char **bp) ^ space_border.c: In function ‘up_empire’: space_border.c:224:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (rr = fabs(-rr - (border->radius * border->radius)) < r ) { ^ space_border.c:240:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (get_random_long(1,100) < ((int) (sdb[x].sensor.lrs_signature ^ space_border.c:249:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (get_random_long(1,100) < ((int) (sdb[x].sensor.lrs_signature ^

@mike347
Copy link
Collaborator

mike347 commented Nov 12, 2017

All those warnings can be safely ignored. I have been meaning to clean up the code, as well as add support for universes (e.g. borders only appear in the specific universe they're assigned to).

I'll work on it this week.

@mike347
Copy link
Collaborator

mike347 commented Nov 12, 2017

Fixed by latest commits.

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

2 participants