Shut up some warnings
This commit is contained in:
		
							parent
							
								
									82e2a070e0
								
							
						
					
					
						commit
						816d3e5724
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -32,7 +32,7 @@ static void sigsegvHandler(int signo, siginfo_t * info, void * ctx) | |||
|         if (diff < 0) diff = -diff; | ||||
|         if (diff < 4096) { | ||||
|             char msg[] = "error: stack overflow (possible infinite recursion)\n"; | ||||
|             (void) write(2, msg, strlen(msg)); | ||||
|             [[gnu::unused]] int res = write(2, msg, strlen(msg)); | ||||
|             _exit(1); // maybe abort instead?
 | ||||
|         } | ||||
|     } | ||||
|  |  | |||
|  | @ -124,7 +124,7 @@ LocalStore::LocalStore(const Params & params) | |||
| #endif | ||||
|             if (res == -1) { | ||||
|                 writeFull(fd.get(), string(settings.reservedSize, 'X')); | ||||
|                 ftruncate(fd.get(), settings.reservedSize); | ||||
|                 [[gnu::unused]] auto res2 = ftruncate(fd.get(), settings.reservedSize); | ||||
|             } | ||||
|         } | ||||
|     } catch (SysError & e) { /* don't care about errors */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue