mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	Silence compiler warnings
Commit cfdf4dc4fc left a few unnecessary assignments, one of which
caused compiler warnings, as reported by Erik Rijkers.  Remove them all.
Discussion: https://postgr.es/m/df0dcca2025b3d90d946ecc508ca9678@xs4all.nl
			
			
This commit is contained in:
		| @@ -361,10 +361,10 @@ BackgroundWriterMain(void) | ||||
| 			/* Ask for notification at next buffer allocation */ | ||||
| 			StrategyNotifyBgWriter(MyProc->pgprocno); | ||||
| 			/* Sleep ... */ | ||||
| 			rc = WaitLatch(MyLatch, | ||||
| 						   WL_LATCH_SET | WL_TIMEOUT | WL_EXIT_ON_PM_DEATH, | ||||
| 						   BgWriterDelay * HIBERNATE_FACTOR, | ||||
| 						   WAIT_EVENT_BGWRITER_HIBERNATE); | ||||
| 			(void) WaitLatch(MyLatch, | ||||
| 							 WL_LATCH_SET | WL_TIMEOUT | WL_EXIT_ON_PM_DEATH, | ||||
| 							 BgWriterDelay * HIBERNATE_FACTOR, | ||||
| 							 WAIT_EVENT_BGWRITER_HIBERNATE); | ||||
| 			/* Reset the notification request in case we timed out */ | ||||
| 			StrategyNotifyBgWriter(-1); | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user