qxtstdio.cpp: 3 * bad compare ?

Issue #53 new
David Binderman created an issue

I just ran the static analyser "cppcheck" over the source code of libqxt-0.6.2

It said

[qxtstdio.cpp:93]: (warning) Storing getchar() return value in char variable and then comparing with EOF. [qxtstdio.cpp:124]: (warning) Storing getchar() return value in char variable and then comparing with EOF. [qxtstdio.cpp:147]: (warning) Storing getchar() return value in char variable and then comparing with EOF.

Suggest change type of local variable from char to int.

Comments (0)

  1. Log in to comment