> This is valid "C": >=20 > void foo(void) > { > printf("Hello world!\n"); > } >=20 > void bar(void) > { > foo; > } >=20 > If a function name is used without an argument list, "C" treats it as the > 'address' of the function. For example, this is valid: >=20 > typedef void (*baz)(void); >=20 > baz function_ptr =3D foo; >=20 > Where we declare a type (baz) to be a pointer to a function that takes no > arguments and returns nothing. We then assign the address of foo to a > pointer of that newly declared type. >=20 > So, given that this is valid, the only warning that would make sense woul= d > be something like: >=20 >=20 > Function 'bar', line ??: Expression has no side effects and its value is = not > used >=20 > I would look for a warning about 'unused' something or other. >=20 > -- Bob Ammerman > RAm Systems >=20 Message 759 in XC8 - expression generates no code. /Ruben =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Ruben J=F6nsson AB Liros Electronic Box 9124 200 39 Malm=F6 Sweden www.liros.se Tel +46 40142078 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .