-
Notifications
You must be signed in to change notification settings - Fork 60
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
Invalid conversion from 'void (*)()' to 'void (*)(char*) compilation errors #2
Comments
Have tested with the standalone IDE version 1.8.7 and 1.8.8 downloaded directly from the Arduino site and did not receive the errors or warnings. However, then tested with v1.8.8/1.8.19.0 downloaded from the Windows 10 store and discovered that these warnings do indeed appear. Will investigate further to see whether the code can be adjusted to avoid them. |
Line 413: changed the expression NULL to character expression '\0'. |
Further warnings reported by Kutte: Y:\USB_16GB\Voltage reference\GPIB\ar488-arduino\ar488\AR488.ino:153:0: warning: "SPE" redefined #define SPE 0x18 In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:272:0, Y:\USB_16GB\Voltage reference\GPIB\ar488-arduino\ar488\AR488.ino:758:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] Y:\USB_16GB\Voltage reference\GPIB\ar488-arduino\ar488\AR488.ino:758:1: warning: invalid conversion from 'void ()()' to 'void ()(char*)' [-fpermissive] Y:\USB_16GB\Voltage reference\GPIB\ar488-arduino\ar488\AR488.ino:758:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] |
In the new release of the code (0.46.01), the names of the #define variables related to GPIB commands (e.g. SPE) have been changed to avoid clashes with other Arduino modules. |
Further corrections made to the code to remove all warnings. By default it seems that this setting is now set to None, so all warnings were hidden. Compilation is now done with the Arduino IDE set to show ALL compiler warnings. |
..does not compile. Errors are
AR488-0-45-10:758: error: invalid conversion from 'void ()()' to 'void ()(char*)' [-fpermissive]
plenty of them..
AR488-0-45-10:758: error: invalid conversion from 'void ()()' to 'void ()(char*)' [-fpermissive]
UPDATE:
error handling seems to have been downgraded to warnings after updating Arduino IDE fro 1.6.5 to 1.8.19
Kutte
The text was updated successfully, but these errors were encountered: