Skip to content

Firmware build fails on latest QMK #12

Description

@gyvess

I just built the lastest qmk_firmware from git to give high resolution scrolling a shot, but building the firmware is now stopped by this error caused by maccel.

 #define CONSTRAIN_REPORT(val) (mouse_xy_report_t) _CONSTRAIN(val, XY_REPORT_MIN, XY_REPORT_MAX)
                                                                   ^~~~~~~~~~~~~
maccel.c:102:46: note: in definition of macro ‘_CONSTRAIN’
 #define _CONSTRAIN(amt, low, high) ((amt) < (low) ? (low) : ((amt) > (high) ? (high) : (amt)))
                                              ^~~
maccel.c:153:33: note: in expansion of macro ‘CONSTRAIN_REPORT’
     const mouse_xy_report_t x = CONSTRAIN_REPORT(new_x);
                                 ^~~~~~~~~~~~~~~~
maccel.c:103:67: note: each undeclared identifier is reported only once for each function it appears in
 #define CONSTRAIN_REPORT(val) (mouse_xy_report_t) _CONSTRAIN(val, XY_REPORT_MIN, XY_REPORT_MAX)
                                                                   ^~~~~~~~~~~~~
maccel.c:102:46: note: in definition of macro ‘_CONSTRAIN’
 #define _CONSTRAIN(amt, low, high) ((amt) < (low) ? (low) : ((amt) > (high) ? (high) : (amt)))
                                              ^~~
maccel.c:153:33: note: in expansion of macro ‘CONSTRAIN_REPORT’
     const mouse_xy_report_t x = CONSTRAIN_REPORT(new_x);
                                 ^~~~~~~~~~~~~~~~
maccel.c:103:82: error: ‘XY_REPORT_MAX’ undeclared (first use in this function)
 #define CONSTRAIN_REPORT(val) (mouse_xy_report_t) _CONSTRAIN(val, XY_REPORT_MIN, XY_REPORT_MAX)
                                                                                  ^~~~~~~~~~~~~
maccel.c:102:71: note: in definition of macro ‘_CONSTRAIN’
 #define _CONSTRAIN(amt, low, high) ((amt) < (low) ? (low) : ((amt) > (high) ? (high) : (amt)))
                                                                       ^~~~
maccel.c:153:33: note: in expansion of macro ‘CONSTRAIN_REPORT’
     const mouse_xy_report_t x = CONSTRAIN_REPORT(new_x);
                                 ^~~~~~~~~~~~~~~~
 [ERRORS]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions