open-iscsi / target-isns

Target-isns is an iSNS client for the Linux LIO iSCSI target
GNU General Public License v2.0
16 stars 19 forks source link

Fix zero length arrays #56

Closed gonzoleeman closed 4 years ago

gonzoleeman commented 4 years ago

This fixes an issue gcc-10 found with one of the two zero-length arrays in isns_proto.h, by converting them to simple pointers. Not sure why they were zero-length arrays in the first place.

gonzoleeman commented 4 years ago

Note: only the last commit is really being submitted. Sorry about the merge tirds. I'll be glad to delete and recreate my repo to clean this up, if you are interested in this commit ... Just let me know.

gonzoleeman commented 4 years ago

Hi. I believe this is the wrong approach. Instead of changing "member[0]" to "* member", it should be changed ti "member[]". So closing this.