Skip to content

Compiler Warning when using U8g2 with MiniCore #2765

@Multiinventor

Description

@Multiinventor

Hi,
compiling U8g2 with MiniCore (strict warnings enabled) throws a sign-compare warning in u8g2_arc.c at line 78:

\Arduino\libraries\U8g2\src\clib\u8g2_arc.c:78:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (d < 2 * (rad - y))
^

If important:

I am using:

  • Atmega328P
  • SSD1306
  • U8G2_SSD1306_128X64_NONAME_2_HW_I2C display(U8G2_R0, U8X8_PIN_NONE);

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