Call the free() function with a pointer to volatile without causing compiler warnings. */
| 1488 | /* Call the free() function with a pointer to volatile without causing |
| 1489 | compiler warnings. */ |
| 1490 | static void kwsysProcessVolatileFree(void volatile* p) |
| 1491 | { |
| 1492 | /* clang has made it impossible to free memory that points to volatile |
| 1493 | without first using special pragmas to disable a warning... */ |
| 1494 | #if defined(__clang__) && !defined(__INTEL_COMPILER) |
| 1495 | # pragma clang diagnostic push |
| 1496 | # pragma clang diagnostic ignored "-Wcast-qual" |
| 1497 | #endif |
| 1498 | free((void*)p); /* The cast will silence most compilers, but not clang. */ |
| 1499 | #if defined(__clang__) && !defined(__INTEL_COMPILER) |
| 1500 | # pragma clang diagnostic pop |
| 1501 | #endif |
| 1502 | } |
| 1503 | |
| 1504 | /* Initialize a process control structure for kwsysProcess_Execute. */ |
| 1505 | static int kwsysProcessInitialize(kwsysProcess* cp) |
no outgoing calls
no test coverage detected
searching dependent graphs…