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

More warning messages during compile with Adafruit_GFX.cpp #106

Open
randypeck opened this issue Feb 18, 2017 · 0 comments
Open

More warning messages during compile with Adafruit_GFX.cpp #106

randypeck opened this issue Feb 18, 2017 · 0 comments

Comments

@randypeck
Copy link

Sorry I'm not familiar with the etiquette here, but wanted to report some warning messages I get every time I compile with Adafruit_GFX. In addition to the unused variable 'xa' described in Issue 89, I'm seeing the following warnings when I compile (with warnings set to 'more' or 'all'):

C:\Users\Randy\Dropbox\Arduino\libraries\Adafruit_GFX_Library\Adafruit_GFX.cpp: At global scope:

C:\Users\Randy\Dropbox\Arduino\libraries\Adafruit_GFX_Library\Adafruit_GFX.cpp:879:42: warning: unused parameter 'i' [-Wunused-parameter]

void Adafruit_GFX::invertDisplay(boolean i) {

                                      ^

C:\Users\Randy\Dropbox\Arduino\libraries\Adafruit_GFX_Library\Adafruit_GFX.cpp: In member function 'boolean Adafruit_GFX_Button::contains(int16_t, int16_t)':

C:\Users\Randy\Dropbox\Arduino\libraries\Adafruit_GFX_Library\Adafruit_GFX.cpp:931:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

if ((x < (_x - _w/2)) || (x > (_x + _w/2))) return false;

      ^

C:\Users\Randy\Dropbox\Arduino\libraries\Adafruit_GFX_Library\Adafruit_GFX.cpp:931:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

if ((x < (_x - _w/2)) || (x > (_x + _w/2))) return false;

                           ^

C:\Users\Randy\Dropbox\Arduino\libraries\Adafruit_GFX_Library\Adafruit_GFX.cpp:932:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

if ((y < (_y - _h/2)) || (y > (_y + _h/2))) return false;

      ^

C:\Users\Randy\Dropbox\Arduino\libraries\Adafruit_GFX_Library\Adafruit_GFX.cpp:932:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

if ((y < (_y - _h/2)) || (y > (_y + _h/2))) return false;

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