Code Monkey home page Code Monkey logo

Comments (5)

Twilight-Logic avatar Twilight-Logic commented on May 22, 2024

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.

from ar488.

Twilight-Logic avatar Twilight-Logic commented on May 22, 2024

Line 413: changed the expression NULL to character expression '\0'.
This seemed to resolve the warnings and the code compiled cleanly.

from ar488.

Twilight-Logic avatar Twilight-Logic commented on May 22, 2024

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,
from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
from sketch\AR488.ino.cpp:1:
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\iom328p.h:294:0: note: this is the location of the previous definition
#define SPE 6
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: 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]

from ar488.

Twilight-Logic avatar Twilight-Logic commented on May 22, 2024

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.

from ar488.

Twilight-Logic avatar Twilight-Logic commented on May 22, 2024

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.

from ar488.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.