Commit ef01dee
Fix inadvertent variable length array
The C standard says that for an array to not be a variable length
type, it's size must be a constant integer expression. A const
variable does not satisfy the definition of a constant integer
expression, but compliers may accept them as an extension. We
used to get away with this, but the compiler shipped with MacOS
Tahoe is more strict and prints a warning. Fix by changing the
const variable to a macro.
See https://stackoverflow.com/questions/72716896/ for more details.1 parent 28a0c87 commit ef01dee
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
895 | | - | |
| 895 | + | |
| 896 | + | |
896 | 897 | | |
897 | 898 | | |
898 | 899 | | |
| |||
905 | 906 | | |
906 | 907 | | |
907 | 908 | | |
908 | | - | |
| 909 | + | |
909 | 910 | | |
910 | 911 | | |
911 | 912 | | |
| 913 | + | |
912 | 914 | | |
913 | 915 | | |
914 | 916 | | |
| |||
0 commit comments