Skip to content

Using #warning in JS library files diagnoses three times. #26577

@juj

Description

@juj

liba.js

#warning This is a test.

results in

$ emcc test/hello_world.c --js-library liba.js -o a.js

warning: liba.js:1: #warning This is a test.
warning: liba.js:1: #warning This is a test.
emcc: warning: warnings in JS library compilation [-Wjs-compiler]

First line is duplicated.

Is there value in the third line to be separate?

E.g. could this be

$ emcc test/hello_world.c --js-library liba.js -o a.js

warning: liba.js:1: #warning This is a test. [-Wjs-compiler]

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