Skip to content

deprecation messages leave extra lines in compiler output #187

@Y-Less

Description

@Y-Less

I have this:

#pragma deprecated Use formatex instead
forward va_formatex(output[], size = sizeof(output), const fmat[], va_:STATIC_ARGS);

Which gives the following output when the function is used:

D:\work\SA-MP\gamemodes\deprecated.pwn(42) : warning 234: function is deprecated (symbol "va_formatex") Use formatex instead

D:\work\SA-MP\gamemodes\deprecated.pwn(53) : warning 234: function is deprecated (symbol "va_formatex") Use formatex instead

There are blank lines placed between the error lines. I've tried a few ways to get rid of them - changing line endings and escaping them, but neither work. With no message, the spacing is correct:

#pragma deprecated
forward va_formatex(output[], size = sizeof(output), const fmat[], va_:STATIC_ARGS);

Which gives the following output when the function is used:

D:\work\SA-MP\gamemodes\deprecated.pwn(42) : warning 234: function is deprecated (symbol "va_formatex")
D:\work\SA-MP\gamemodes\deprecated.pwn(53) : warning 234: function is deprecated (symbol "va_formatex")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions