Mark runcmd with attribute noreturn, since it doesn't return
When compiling with gcc version 12, this change also avoids the compiler warning "infinite recursion detected" for runcmd()
This commit is contained in:
		
							parent
							
								
									84a1bdb5aa
								
							
						
					
					
						commit
						1b02b08db1
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -52,6 +52,7 @@ struct backcmd {
 | 
			
		|||
int fork1(void);  // Fork but panics on failure.
 | 
			
		||||
void panic(char*);
 | 
			
		||||
struct cmd *parsecmd(char*);
 | 
			
		||||
void runcmd(struct cmd*) __attribute__((noreturn));
 | 
			
		||||
 | 
			
		||||
// Execute cmd.  Never returns.
 | 
			
		||||
void
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue