File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717#include <math.h>
1818#include <string.h>
1919
20- // Before the 23 standard, C and C++ handled unused arguments differently.
21- // C does not allow variable names to be omitted, but does not complain if
22- // the variable is unused. On the other hand, C++ allows variable names to
23- // be omitted, but will complain if it is not used when named.
24- // The "[[maybe_unused]]" attribute is a C23 extension, so it's not applicable
25- // here until support for earlier standards is dropped.
20+ /*
21+ Before the 23 standard, C and C++ handled unused arguments differently.
22+ C does not allow variable names to be omitted, but does not complain if
23+ the variable is unused. On the other hand, C++ allows variable names to
24+ be omitted, but will complain if it is not used when named.
25+ The "[[maybe_unused]]" attribute is a C23 extension, so it's not applicable
26+ here until support for earlier standards is dropped.
27+ */
2628#ifndef __cplusplus
2729 #define COSIMIO_MAYBE_UNUSED (variable_name ) variable_name
2830#else
You can’t perform that action at this time.
0 commit comments