In this context would an indeterminate value lead
down the path to undefined behavior?
(void)foo->member;
I want to keep my interface consisent in my program
so I have this one function which is passed an argument
that it doesn't need.
So I can only think of using it this way as a viable method
of staying consistent with my interface
That is, within a struct I have a pointer to a function
so I can't really change the interface as several other functions
rely on this particular argument.
So if member had an indeterminate value
would it be undefined behavior to use it
in the manner specified above?
I know casting it to (void) does not yield a value
so this is why I am unsure.
--
nethlek