You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the generated header files are now included within a Cpp file
extern "C" {
#include "max4146x_reg.h"
}
it throws a lot of warnings and errors, examples are:
/.../max4146x/max4146x_reg.h:1003:30: warning: missing initializer for member 'max4146x_cfg7::spi_txen2' [-Wmissing-field-initializers]
1003 | struct max4146x_cfg7 r = {0};
/.../max4146x/max4146x_reg.h:1300:28: error: invalid conversion from 'int' to 'max4146x_papwr' [-fpermissive]
1300 | struct max4146x_pa1 r = {0};
| ^
| |
| int
/.../max4146x/max4146x_reg.h:208:38: warning: ISO C++ forbids compound-literals [-Wpedantic]
208 | #define MAX4146X_CFG1_RESET_LE {0x90U} //!< CFG1 register reset value
| ^
This happens as the file is interpreted by the cpp compiler, which typically has much stricter rules (which saddly aren't easy to change for a single file anymore).
Help could be to split the file into a .c/.h pair.
The text was updated successfully, but these errors were encountered:
If the generated header files are now included within a Cpp file
it throws a lot of warnings and errors, examples are:
This happens as the file is interpreted by the cpp compiler, which typically has much stricter rules (which saddly aren't easy to change for a single file anymore).
Help could be to split the file into a .c/.h pair.
The text was updated successfully, but these errors were encountered: