Skip to content

Arduino compiler warnings due to - and _ chars #14

@hemtron

Description

@hemtron

While building a small project with the BME280 the arduino 2.1.0 version complains about ___ and - chars in the filename and code.

Arduino\trunk\libraries\BME280/BME280_MOD-1022.h:41:21: warning: extra tokens at end of #ifndef directive
41 | #ifndef __BME280_MOD-1022_H
| ^
c:\Users\Hemtron............\Arduino\trunk\libraries\BME280/BME280_MOD-1022.h:42:9: warning: ISO C++11 requires whitespace after the macro name
42 | #define __BME280_MOD-1022_H
| ^~~~~~~~~~~~

Renaming could fix this.

Also an issue about 'register':
c:\Users\Hemtron................\Arduino\trunk\libraries\BME280/BME280_MOD-1022.h:165:33: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
165 | uint8_t readRegister(uint8_t register);

Don't know how to fix this

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