Citeren Tim Rice <[email protected]>:

Strange, Sun's compiler (Sun Studio 12) claims to handle C99

Flexible array members can be can't be (statically) initialized in C99. I've added some autoconf magic that detects if your compiler supports flexible array members and/or variable-length arrays. Most likely it will, but probably doesn't support this GNU C extension (so we can't use that). I'll work on a better solution after we get nut-2.4.2 out. Hard coding the length to '2' doesn't hurt and will only be a pain if we start adding subdriver info.

Best regards, Arjen
--
Please keep list traffic on the list


_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to