This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

_cpp_replacement_text_len and len


These are new warnings and they look not be a false positive:
gcc/cpptrad.c: In function `_cpp_replacement_text_len':
gcc/cpptrad.c:802: warning: `len' might be used uninitialized in this function

It looks like len should be initialized to 0 at the begin of the function.

Attached is a fix

Attachment: diff
Description: Binary data







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]