Fix type comparison issue that is a hard error in GCC 10. Taken from upstream: https://github.com/OpenTTD/grfcodec/commit/bb692b2c723c5e87cc8f89f445928e97594d5b8f diff --git a/src/command.cpp b/src/command.cpp index 9aa0e14..1f32cf1 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -300,8 +300,9 @@ bool parse_comment(const string&line){ break; case BEAUTIFY:{ commandstream>>command_part; - uint val=find_command(command_part,beaut),togglebit; - if(val!=(uint)-1&&val!=OFF)_commandState.beautifier=true; + int val=find_command(command_part,beaut); + uint togglebit; + if(val!=-1&&val!=OFF)_commandState.beautifier=true; switch(val){ case -1: IssueMessage(0,COMMAND_INVALID_ARG,gen[BEAUTIFY].name); @@ -372,7 +373,7 @@ bool parse_comment(const string&line){ dotoggle: commandstream>>command_part; val=find_command(command_part,beaut); - if(!commandstream||val==(uint)-1){ + if(!commandstream||val==-1){ IssueMessage(0,COMMAND_INVALID_ARG,gen[BEAUTIFY].name); return true; } aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/cuirass.scm
AgeCommit message (Expand)Author
2019-10-23services: cuirass: Create /var/log/cuirass during activation....* gnu/services/cuirass.scm (cuirass-activation): Create "/var/log/cuirass". Ludovic Courtès
2019-09-23services: cuirass: Remove unneeded conditional....* gnu/services/cuirass.scm (cuirass-shepherd-service): Remove unneeded 'and'. Ludovic Courtès
2019-08-29services: cuirass: Log web interface to separate file....* gnu/services/cuirass.scm (<cuirass-configuration>): Add web-log-file field. (cuirass-shepherd-service): Read it and use it. * doc/guix.texi (Continuous Integration): Document it. Ricardo Wurmus
2019-08-26services: cuirass: Split into two separate services....* gnu/services/cuirass.scm (cuirass-shepherd-service): Return two shepherd services, one for the web interface, another for building packages. Ricardo Wurmus
2019-03-04services: Use 'file-append' for user account shells....* gnu/services/cuirass.scm (cuirass-account): Use 'file-append' instead of #~(string-append #$shadow "/sbin/nologin"). * gnu/services/monitoring.scm (zabbix-server-account): Likewise. (zabbix-agent-account): Likewise. * gnu/services/rsync.scm (rsync-account): Likewise. * gnu/services/ssh.scm (%openssh-accounts): Likewise. Ludovic Courtès
2018-11-07services: cuirass: Add 'ttl' configuration field....* gnu/services/cuirass.scm (<cuirass-configuration>)[ttl]: New field. (cuirass-shepherd-service): Honor it. Ludovic Courtès