diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-04-13 14:07:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 14:07:48 -0400 |
commit | 41a46c7c8e4aa2470c245cbe09deb57c0720698e (patch) | |
tree | 8b07323439fc477f47833d7ee7564e26b323a3eb /tmk_core/common/mousekey.h | |
parent | d3301c0f8b0005738ab9aa2030d83739ffb5c4b6 (diff) | |
parent | d68294615f9c67764c06a7524fb59c22c024a106 (diff) |
Merge pull request #1224 from fredizzimo/fix_warnings
Fix all warnings and turn on warnings as errors
Diffstat (limited to 'tmk_core/common/mousekey.h')
-rw-r--r-- | tmk_core/common/mousekey.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tmk_core/common/mousekey.h b/tmk_core/common/mousekey.h index 6eede06b44..9338d0af77 100644 --- a/tmk_core/common/mousekey.h +++ b/tmk_core/common/mousekey.h @@ -23,8 +23,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. /* max value on report descriptor */ -#define MOUSEKEY_MOVE_MAX 127 -#define MOUSEKEY_WHEEL_MAX 127 +#ifndef MOUSEKEY_MOVE_MAX + #define MOUSEKEY_MOVE_MAX 127 +#elif MOUSEKEY_MOVE_MAX > 127 + #error MOUSEKEY_MOVE_MAX needs to be smaller than 127 +#endif + +#ifndef MOUSEKEY_WHEEL_MAX + #define MOUSEKEY_WHEEL_MAX 127 +#elif MOUSEKEY_WHEEL_MAX > 127 + #error MOUSEKEY_WHEEL_MAX needs to be smaller than 127 +#endif #ifndef MOUSEKEY_MOVE_DELTA #define MOUSEKEY_MOVE_DELTA 5 |