ScruffR / PS2Communication

Interrupt driven PS/2 communication library (with PS/2 mouse example)
Other
7 stars 4 forks source link

type of 'state' does not match original declaration [-Werror] #2

Closed w5teen closed 9 years ago

w5teen commented 9 years ago

Veryfing code using this library in Particle Build fails with this error:

PS2Communication/PS2Communication.cpp:47:18: error: type of 'state' does not match original declaration [-Werror]
 volatile uint8_t state = 0
ScruffR commented 9 years ago

I'll have to look into it. Are you building for Photon or Core?

w5teen commented 9 years ago

ScruffR I would ignore this problem. I think the cause was that I had a variable declared as volatile int called 'state'. You have a variable called 'state' in PS2Communication and the compiler correctly kicked this out albeit in a not very easy to understand form. I hit the report to github button and then realised what this was all about.