Skip to content

Compiler warning/error for "va_start" #12

Closed
@lendres

Description

@lendres

There is a compiler warning/error that occurs on build. It is:

...\Arduino_DebugUtils.cpp: In member function 'void Arduino_DebugUtils::print(int, const __FlashStringHelper*, ...)':
...\Arduino_DebugUtils.cpp:86:3: warning: second parameter of 'va_start' not last named argument [-Wvarargs]
va_start(args, fmt_str.c_str());

From my investigation, is seems that line 86 (of "Arduino_DebugUtils.cpp") is:

va_start(args, fmt_str.c_str());

and should instead be:

va_start(args, fmt);

I'm not overly familiar with that macro, but this version does stop the error and seems to function correctly when I run the examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of projecttype: supportOT: Request for help using the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions