Fossil SCM
Remove the sigalrm_handler() function on windows builds as it is never called there.
Commit
1d7afcdff65e55a7821f8f4c7051c7cab98f0b127cdce382c731238a8074b3cf
Parent
006afac0f04b316…
1 file changed
+2
+2
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -2469,13 +2469,15 @@ | ||
| 2469 | 2469 | |
| 2470 | 2470 | /* |
| 2471 | 2471 | ** Respond to a SIGALRM by writing a message to the error log (if there |
| 2472 | 2472 | ** is one) and exiting. |
| 2473 | 2473 | */ |
| 2474 | +#ifndef _WIN32 | |
| 2474 | 2475 | static void sigalrm_handler(int x){ |
| 2475 | 2476 | fossil_panic("TIMEOUT"); |
| 2476 | 2477 | } |
| 2478 | +#endif | |
| 2477 | 2479 | |
| 2478 | 2480 | /* |
| 2479 | 2481 | ** Arrange to timeout using SIGALRM after N seconds. Or if N==0, cancel |
| 2480 | 2482 | ** any pending timeout. |
| 2481 | 2483 | ** |
| 2482 | 2484 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2469,13 +2469,15 @@ | |
| 2469 | |
| 2470 | /* |
| 2471 | ** Respond to a SIGALRM by writing a message to the error log (if there |
| 2472 | ** is one) and exiting. |
| 2473 | */ |
| 2474 | static void sigalrm_handler(int x){ |
| 2475 | fossil_panic("TIMEOUT"); |
| 2476 | } |
| 2477 | |
| 2478 | /* |
| 2479 | ** Arrange to timeout using SIGALRM after N seconds. Or if N==0, cancel |
| 2480 | ** any pending timeout. |
| 2481 | ** |
| 2482 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2469,13 +2469,15 @@ | |
| 2469 | |
| 2470 | /* |
| 2471 | ** Respond to a SIGALRM by writing a message to the error log (if there |
| 2472 | ** is one) and exiting. |
| 2473 | */ |
| 2474 | #ifndef _WIN32 |
| 2475 | static void sigalrm_handler(int x){ |
| 2476 | fossil_panic("TIMEOUT"); |
| 2477 | } |
| 2478 | #endif |
| 2479 | |
| 2480 | /* |
| 2481 | ** Arrange to timeout using SIGALRM after N seconds. Or if N==0, cancel |
| 2482 | ** any pending timeout. |
| 2483 | ** |
| 2484 |