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 warnings #12

Open
RaWa99 opened this issue Oct 1, 2015 · 2 comments
Open

compilation warnings #12

RaWa99 opened this issue Oct 1, 2015 · 2 comments

Comments

@RaWa99
Copy link
Collaborator

RaWa99 commented Oct 1, 2015

There are 2 warnings during compilation. These are
both pointer to integer conversions:

src/XMotif/XmDialogs.c: In function ‘toggledNodeCheckCB’:
src/XMotif/XmDialogs.c:962:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
int bit = (int) client_data;
^
src/XMotif/XmDialogs.c: In function ‘wpignodecheck_’:
src/XMotif/XmDialogs.c:1053:67: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
XtAddCallback (w, XmNvalueChangedCallback, toggledNodeCheckCB, (XtPointer) i);
^
It would be nice to remove these.

@drusk
Copy link
Collaborator

drusk commented Oct 16, 2015

Compiling on Ubuntu there are a few additional warnings:

src/XMotif/XmMain.c: In function ‘fileok_cb’:
src/XMotif/XmMain.c:696:9: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
puts ("No file selected.");
^
src/XMotif/XmDrawdbl.c: In function ‘set_color’:
src/XMotif/XmDrawdbl.c:74:9: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
printf ( "Can't alloc %s", color);
^
src/XMotif/XmDrawdbl.c:74:9: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]

@RaWa99
Copy link
Collaborator Author

RaWa99 commented Oct 22, 2015

I don't get these additional warnings with gcc 4.8 and openSUSE 31.1. My
setup must have these
as a default.

On 10/15/2015 11:03 PM, David Rusk wrote:

Compiling on Ubuntu there are a few additional warnings:

src/XMotif/XmMain.c: In function ‘fileok_cb’:
src/XMotif/XmMain.c:696:9: warning: implicit declaration of function
‘puts’ [-Wimplicit-function-declaration]
puts ("No file selected.");
^
src/XMotif/XmDrawdbl.c: In function ‘set_color’:
src/XMotif/XmDrawdbl.c:74:9: warning: implicit declaration of function
‘printf’ [-Wimplicit-function-declaration]
printf ( "Can't alloc %s", color);
^
src/XMotif/XmDrawdbl.c:74:9: warning: incompatible implicit
declaration of built-in function ‘printf’ [enabled by default]


Reply to this email directly or view it on GitHub
#12 (comment).

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