Package: cppcheck
Version: 1.61-1
Severity: normal

Hello Reijo,

cppcheck report a syntax error for the following code
Since X11/keysym.h defines XK_c, this is a false positive.

Checking cpp2.c...
Checking cpp2.c: XK_c...
[cpp2.c:9]: (error) syntax error
-----------------
#ifndef XK_c
#include <X11/keysym.h>
#endif
 
int fun(int n)
{
  switch(n)
  {
    case XK_c:
      return 0;
    default:
      return 1;
  }
}
---------------

Cheers,
-- 
Bill. <[email protected]>

Imagine a large red swirl here. 


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to