Commit 149d7445e0a4ffa444596d07e072dd8beddd959b

Authored by 김태훈
1 parent 2189b57d9a
Exists in master and in 2 other branches fhd, fhd-demo

컴파일 경고 제거

app/gui/oven_control/config.cpp
@@ -166,7 +166,7 @@ bool Config::loadConfig(){ @@ -166,7 +166,7 @@ bool Config::loadConfig(){
166 saveConfig(); 166 saveConfig();
167 return false; 167 return false;
168 } 168 }
169 - if(buff[sizeof(config_lists)] ==0x9c){ 169 + if((unsigned char) buff[sizeof(config_lists)] ==0x9c){
170 memcpy(configlist.data,buff,sizeof(config_lists)); 170 memcpy(configlist.data,buff,sizeof(config_lists));
171 qDebug() << "loading config file success"; 171 qDebug() << "loading config file success";
172 } 172 }
app/gui/oven_control/fileprocessdlg.cpp
@@ -676,7 +676,7 @@ void FileProcessDlg::configUpload(){ @@ -676,7 +676,7 @@ void FileProcessDlg::configUpload(){
676 QTimer::singleShot(1000,this,SLOT(close())); 676 QTimer::singleShot(1000,this,SLOT(close()));
677 return; 677 return;
678 } 678 }
679 - if(buff[sizeof(config_lists)] != 0x9C){ 679 + if((unsigned char) buff[sizeof(config_lists)] != 0x9C){
680 qDebug() << "SRC config.ini file check fail"; 680 qDebug() << "SRC config.ini file check fail";
681 ui->ctrLbRemainTime->setText(tr("설정 업로드에 실패하였습니다.")); 681 ui->ctrLbRemainTime->setText(tr("설정 업로드에 실패하였습니다."));
682 QTimer::singleShot(1000,this,SLOT(close())); 682 QTimer::singleShot(1000,this,SLOT(close()));