Skip to content

Node.js 22 issue: mbus-serial.c(90,23): warning C4090: 'function': different 'const' qualifiers  #124

@danielpeintner

Description

@danielpeintner

Describe the bug

In node-wot we tried to add Node.js 22 as CI dependency and the run fails with

npm error   mbus-serial.c
npm error D:\a\node-wot\node-wot\node_modules\node-mbus\libmbus\mbus\mbus-serial.c(90,23): warning C4090: 'function': different 'const' qualifiers [D:\a\node-wot\node-wot\node_modules\node-mbus\build\libmbus.vcxproj]

To Reproduce
see eclipse-thingweb/node-wot#1274
https://github.com/eclipse-thingweb/node-wot/actions/runs/8878604576/job/24558179052?pr=1274#step:5:24

Expected behavior
npm ci or npm install should work.

Screenshots & Logfiles
https://github.com/eclipse-thingweb/node-wot/actions/runs/8878604576/job/24558179052?pr=1274#step:5:24

Versions:
Tested node-mbus 2.2.2.

The file /libmbus/mbus/mbus-serial.c mentioned in the error log seems to be referenced here:

'./libmbus/mbus/mbus-serial.c',

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions