8768 lib/hal: variable set but not used

Review Request #708 - Created Nov. 6, 2017 and submitted

Information
Toomas Soome
illumos-gate
8768
7ad782e...
Reviewers
general
../common/libhal-storage.c: In function 'libhal_volume_policy_compute_display_name':
../common/libhal-storage.c:361:23: error: variable 'drive_cdrom_caps' set but not used [-Werror=unused-but-set-variable]
  LibHalDriveCdromCaps drive_cdrom_caps;
                       ^~~~~~~~~~~~~~~~
../common/libhal-storage.c:359:14: error: variable 'drive_is_hotpluggable' set but not used [-Werror=unused-but-set-variable]
  dbus_bool_t drive_is_hotpluggable;
              ^~~~~~~~~~~~~~~~~~~~~
../common/libhal-storage.c:357:14: error: variable 'vendor' set but not used [-Werror=unused-but-set-variable]
  const char *vendor;
              ^~~~~~
../common/libhal-storage.c:356:14: error: variable 'model' set but not used [-Werror=unused-but-set-variable]
  const char *model;
              ^~~~~
../common/libhal-storage.c: In function 'mopts_collect':
../common/libhal-storage.c:1900:7: error: variable 'type' set but not used [-Werror=unused-but-set-variable]
   int type;
       ^~~~
cc1: all warnings being treated as errors

  
C Fraire
Ryan Zezeski
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...