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

Removes some minor GCC warnings #4349

Merged
merged 2 commits into from
Jul 19, 2016

Conversation

jbrazio
Copy link
Contributor

@jbrazio jbrazio commented Jul 19, 2016

In file included from sketch\Configuration.h:55:0,

                 from sketch\Marlin.h:44,

                 from sketch\Marlin_main.cpp:35:

sketch\Marlin_main.cpp: In function 'void gcode_M200()':

sketch\macros.h:57:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

 #define COUNT(a) (sizeof(a)/sizeof(*a))

                                       ^

sketch\Marlin_main.cpp:5325:27: note: in expansion of macro 'COUNT'

       for (int i = 0; i < COUNT(filament_size); i++)

                           ^

sketch\Marlin_main.cpp: In function 'void calculate_volumetric_multipliers()':

sketch\macros.h:57:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

 #define COUNT(a) (sizeof(a)/sizeof(*a))

                                       ^

sketch\Marlin_main.cpp:8695:23: note: in expansion of macro 'COUNT'

   for (int i = 0; i < COUNT(filament_size); i++)

@jbrazio jbrazio added this to the 1.1.0 milestone Jul 19, 2016
@thinkyhead thinkyhead merged commit 6c899bb into MarlinFirmware:RCBugFix Jul 19, 2016
@jbrazio jbrazio deleted the gcc-bark-bark branch July 19, 2016 21:55
@thinkyhead thinkyhead mentioned this pull request Jul 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants