Преглед на файлове

[apt-pkg/contrib/fileutl.cc] In function ExecWait(): fix compile warning:
warning: suggest explicit braces to avoid ambiguous ‘else’

David Kalnischkies преди 17 години
родител
ревизия
40e7fe0e05
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      apt-pkg/contrib/fileutl.cc

+ 2 - 0
apt-pkg/contrib/fileutl.cc

@@ -451,10 +451,12 @@ bool ExecWait(pid_t Pid,const char *Name,bool Reap)
       if (Reap == true)
       if (Reap == true)
 	 return false;
 	 return false;
       if (WIFSIGNALED(Status) != 0)
       if (WIFSIGNALED(Status) != 0)
+      {
 	 if( WTERMSIG(Status) == SIGSEGV)
 	 if( WTERMSIG(Status) == SIGSEGV)
 	    return _error->Error(_("Sub-process %s received a segmentation fault."),Name);
 	    return _error->Error(_("Sub-process %s received a segmentation fault."),Name);
 	 else 
 	 else 
 	    return _error->Error(_("Sub-process %s received signal %u."),Name, WTERMSIG(Status));
 	    return _error->Error(_("Sub-process %s received signal %u."),Name, WTERMSIG(Status));
+      }
 
 
       if (WIFEXITED(Status) != 0)
       if (WIFEXITED(Status) != 0)
 	 return _error->Error(_("Sub-process %s returned an error code (%u)"),Name,WEXITSTATUS(Status));
 	 return _error->Error(_("Sub-process %s returned an error code (%u)"),Name,WEXITSTATUS(Status));