Skip to content

Add deprecation attributes to deprecated struct fields - #27545

Open
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:html5-deprecated-fields
Open

Add deprecation attributes to deprecated struct fields#27545
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:html5-deprecated-fields

Conversation

@sbc100

@sbc100 sbc100 commented Aug 15, 2026

Copy link
Copy Markdown
Collaborator

Mark deprecated fields in EmscriptenKeyboardEvent,
EmscriptenMouseEvent, and EmscriptenTouchPoint with
__attribute__((deprecated(...))) attributes in html5.h, and add
corresponding warnings in html5.h.rst.

Also add deprecation message to emscripten_fetch_wait in fetch.h,
and add -Wno-deprecated-declarations to existing tests that inspect
deprecated fields.

@sbc100
sbc100 requested a review from kripken August 15, 2026 00:05
@sbc100
sbc100 force-pushed the html5-deprecated-fields branch from c3c512c to 8792ec1 Compare August 15, 2026 00:09
@sbc100 sbc100 changed the title Add [[deprecated]] attributes to deprecated struct fields [headers] Add deprecation attributes to deprecated struct fields Aug 15, 2026
@sbc100 sbc100 changed the title [headers] Add deprecation attributes to deprecated struct fields Add deprecation attributes to deprecated struct fields Aug 15, 2026
Mark deprecated fields in `EmscriptenKeyboardEvent`,
`EmscriptenMouseEvent`, and `EmscriptenTouchPoint` with
`__attribute__((deprecated(...)))` attributes in `html5.h`, and add
corresponding warnings in `html5.h.rst`.

Also add deprecation message to `emscripten_fetch_wait` in `fetch.h`,
and add `-Wno-deprecated-declarations` to existing tests that inspect
deprecated fields.
@sbc100
sbc100 force-pushed the html5-deprecated-fields branch from 8792ec1 to d26c3ab Compare August 15, 2026 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant