Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error In member function 'byte MFRC522::PCD_ReadRegister(byte)': warning: ISO C++ says that these are ambiguous ... #8

Open
paolovr970 opened this issue Nov 21, 2023 · 0 comments

Comments

@paolovr970
Copy link

Compiling a sketch and using MFRC522_I2C_library the Arduino IDE reports this message (non blocking but present).
Can you fix it?
thanks. p.

c:\Users...\libraries\MFRC522_I2C_Library-master\src\MFRC522_I2C.cpp: In member function 'byte MFRC522::PCD_ReadRegister(byte)':
c:\Users...Arduino\libraries\MFRC522_I2C_Library-master\src\MFRC522_I2C.cpp:83:51: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
_TwoWireInstance->requestFrom(_chipAddress, _size);
^
In file included from c:\Users...\Arduino\libraries\MFRC522_I2C_Library-master\src/MFRC522_I2C.h:82:0,
from c:\Users...\Arduino\libraries\MFRC522_I2C_Library-master\src\MFRC522_I2C.cpp:10:
C:\Users...\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\libraries\Wire\src/Wire.h:50:10: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
uint8_t requestFrom(int, int);
^
C:\Users...\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\libraries\Wire\src/Wire.h:47:10: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
uint8_t requestFrom(uint8_t, uint8_t);
^
c:\Users...\libraries\MFRC522_I2C_Library-master\src\MFRC522_I2C.cpp: In member function 'void MFRC522::PCD_ReadRegister(byte, byte, byte*, byte)':
c:\Users...\Arduino\libraries\MFRC522_I2C_Library-master\src\MFRC522_I2C.cpp:106:52: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
_TwoWireInstance->requestFrom(_chipAddress, _count);
^
In file included from c:\Users....\Arduino\libraries\MFRC522_I2C_Library-master\src/MFRC522_I2C.h:82:0,
from c:\Users...\Arduino\libraries\MFRC522_I2C_Library-master\src\MFRC522_I2C.cpp:10:
C:\Users...\Arduino15\packages\arduino\hardware\sam\1.6.12\libraries\Wire\src/Wire.h:50:10: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
uint8_t requestFrom(int, int);
^
C:\Users...\Arduino15\packages\arduino\hardware\sam\1.6.12\libraries\Wire\src/Wire.h:47:10: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
uint8_t requestFrom(uint8_t, uint8_t);
^
c:\Users...\libraries\MFRC522_I2C_Library-master\src\MFRC522_I2C.cpp: In member function 'byte MFRC522::PCD_CommunicateWithPICC(byte, byte, byte*, byte, byte*, byte*, byte*, byte, bool)':
c:\Users...\Arduino\libraries\MFRC522_I2C_Library-master\src\MFRC522_I2C.cpp:458:20: warning: '_validBits' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (backLen < 2 || _validBits != 0) {
^
c:\Users...\Arduino\libraries\MFRC522_I2C_Library-master\src\MFRC522_I2C.cpp: In member function 'void MFRC522::PICC_DumpMifareClassicSectorToSerial(MFRC522::Uid
, MFRC522::MIFARE_Key*, byte)':
c:\Users...\Arduino\libraries\MFRC522_I2C_Library-master\src\MFRC522_I2C.cpp:1478:4: warning: 'invertedError' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (invertedError) {
^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant