T
Todd Nathan
Have ported Until 2.5.2 which is a highly portable embedded FORTH-like
language system to BeOS. Turned on -Wall cause I'm anal about cleaning
up ports if I'm doing them, and have all but ONE warning that I don't seem
to be able to get cleaned up... Simply...
printf("%-10s %12lx %1d\n", temp->NFA->name, &temp, temp->NFA->immediate);
produces a gcc2.95 warning:
prim.c: In function `display_word':
prim.c:2203: warning: long unsigned int format, pointer arg (arg 3)
where temp is defined
struct DictHeader *temp;
with the of-importance struct defs:
struct NameField {
int len;
int system;
int immediate;
int smudge;
char *name;
struct view_location *view;
};
struct DictHeader {
void (*CFA)(); /* ptr to primitive function */
union pfa_type PFA; /* ptr to list of words to execute */
struct NameField *NFA; /* ptr to name string */
struct DictHeader *LFA; /* points to next word in dict. */
};
I'm rather perplexed, without -Wall the warning doesn't come on at all. So,
would someone please enlighten me on how to get the compiler to shut up
Thank you, please email me directly, I do not frequent this group at all.
Best wishes!
language system to BeOS. Turned on -Wall cause I'm anal about cleaning
up ports if I'm doing them, and have all but ONE warning that I don't seem
to be able to get cleaned up... Simply...
printf("%-10s %12lx %1d\n", temp->NFA->name, &temp, temp->NFA->immediate);
produces a gcc2.95 warning:
prim.c: In function `display_word':
prim.c:2203: warning: long unsigned int format, pointer arg (arg 3)
where temp is defined
struct DictHeader *temp;
with the of-importance struct defs:
struct NameField {
int len;
int system;
int immediate;
int smudge;
char *name;
struct view_location *view;
};
struct DictHeader {
void (*CFA)(); /* ptr to primitive function */
union pfa_type PFA; /* ptr to list of words to execute */
struct NameField *NFA; /* ptr to name string */
struct DictHeader *LFA; /* points to next word in dict. */
};
I'm rather perplexed, without -Wall the warning doesn't come on at all. So,
would someone please enlighten me on how to get the compiler to shut up
Thank you, please email me directly, I do not frequent this group at all.
Best wishes!