cloudbase / wnbd

Windows Ceph RBD NBD driver
GNU Lesser General Public License v2.1
58 stars 26 forks source link

Fix compilation issues VS 2017 #35

Closed aserdean closed 3 years ago

aserdean commented 3 years ago

MSVC 2017 complains: Warning C4204 nonstandard extension used: non-constant aggregate initializer driver driver\options.c 84 Warning C4204 nonstandard extension used: non-constant aggregate initializer driver driver\options.c 153 Warning C4204 nonstandard extension used: non-constant aggregate initializer driver driver\options.c 154 (the above also applies on nonupdated VS 2019) For reference: https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2008/6b73z23c(v=vs.90)

Such type of initializations are useful and we disable the warning since it can be safely ignored.

Signed-off-by: Alin Gabriel Serdean aserdean@cloudbasesolutions.com