Skip to content

Bug: gcc compiler appears to handle va_arg(args, char) differently then msvc/clang-cl #268

Description

Description:

When compiled with the gcc compiler, the following line generates a warning:

    buffer << va_arg(args, char);

    warning: 'char' is promoted to 'int' when passed through '...'

    note: if this code is reached, the program will abort

No such warning appears when compiling with MSVC or clang-cl, so I'm assuming there's a difference in how '...' arguments are added to va_list. If it is different, then this will need conditional code to handle.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions