]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
plugins/wdc: Add type case for feature id
authorDaniel Wagner <dwagner@suse.de>
Fri, 23 Sep 2022 11:43:57 +0000 (13:43 +0200)
committerDaniel Wagner <dwagner@suse.de>
Fri, 23 Sep 2022 11:43:57 +0000 (13:43 +0200)
commit5ad3ea1cb26ec68c24611629e80b4312f35e0cf6
treedf5c74fa9db2b7f5e2e9f6951ddecb10b79c8295
parentc95fe8aa83fb35389d2017d01140a133e31ddcd1
plugins/wdc: Add type case for feature id

clang reports

../plugins/wdc/wdc-nvme.c:9000:36: warning: implicit conversion from enumeration type 'NVME_FEATURE_IDENTIFIERS' (aka 'enum _NVME_FEATURE_IDENTIFIERS') to different enumeration type 'enum nvme_features_id' [-Wenum-conversion]
                                             deFeatureIdList[listIdx].featureId,
                                             ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~

Add type case to avoid the warning. Ideally, the plugin would not
introduce their own enum value.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
plugins/wdc/wdc-nvme.c