[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gta-list] gtatool-1.5.2 bug report
From: |
David Binderman |
Subject: |
[gta-list] gtatool-1.5.2 bug report |
Date: |
Sun, 8 Sep 2013 12:03:55 +0000 |
Hello there,
I just ran the static analysis tool "cppcheck" over the source code
of gtatool-1.5.2
It said
[fio.cpp:835]: (warning) Storing getc() return value in char variable and then
comparing with EOF.
Source code is
char c;
while ((c = getc(f, filename)) != EOF)
As per K & R 2, page 16, suggest change type of c from char to int.
Regards
David Binderman
- [gta-list] gtatool-1.5.2 bug report,
David Binderman <=