I'm removing all warnings from our compile, and came across the following:
warning: the address of ` char* index(const char*, int)', will always be 'true'
for the following line of code:
DEBUG_MSG("Data received from Device "<<(int)_nodeId << "for" << index <<(int)msgIn.index<<".");
DEBUG_MSG is one of our logging macros that the preprocessor subsitutes into a statement that takes C++ style stream operations.
index does not appear to be declared, so I'm assuming that it was supposed to read:
DEBUG_MSG("Data received from Device "<<(int)_nodeId << "for index " <<(int)msgIn.index<<".");
and index would be a function* to the "char* index(const char*, int)" function in the standard library, but what does the index function do? Google seems useless as it pulls up indexes of books related to C++.
Is there something I'm missing in my interpretation of this warning?