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

Lots of warnings: unused variable; may be used uninitialized in this function #89

Open
frankvg opened this issue Jun 30, 2016 · 0 comments

Comments

@frankvg
Copy link

frankvg commented Jun 30, 2016

With GFX 1.1.5, in IDE 1.6.9, using Teensy 3.2, each compile shows a number of warnings. It's obvious none of these are all that important and the code functions fine. It is somewhat annoying to have all these errors when compiling and I'd prefer not to shut off warnings. These warnings include:

C:\Apps\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX\Adafruit_GFX.cpp:566:14: warning: unused variable 'xa' [-Wunused-variable]

C:\Apps\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX\Adafruit_GFX.cpp:392:27: warning: 'byte' may be used uninitialized in this function [-Wmaybe-uninitialized]

C:\Apps\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX\Adafruit_GFX.cpp:410:27: warning: 'byte' may be used uninitialized in this function [-Wmaybe-uninitialized]

C:\Apps\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX\Adafruit_GFX.cpp:427:27: warning: 'byte' may be used uninitialized in this function [-Wmaybe-uninitialized]

C:\Apps\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX\Adafruit_GFX.cpp:443:27: warning: 'byte' may be used uninitialized in this function [-Wmaybe-uninitialized]

C:\Apps\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX\Adafruit_GFX.cpp:462:27: warning: 'byte' may be used uninitialized in this function [-Wmaybe-uninitialized]

C:\Apps\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX\Adafruit_GFX.cpp:600:9: warning: 'bits' may be used uninitialized in this function [-Wmaybe-uninitialized]

C:\Apps\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX\Adafruit_GFX.cpp:604:47: warning: 'yo16' may be used uninitialized in this function [-Wmaybe-uninitialized]

C:\Apps\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX\Adafruit_GFX.cpp:570:14: warning: 'xo16' may be used uninitialized in this function [-Wmaybe-uninitialized]

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