Remove warning 'warning: variable ‘w’ set but not used [-Wunused-but-set-variable]'. Remove write_dicom_test.