40C will not harm any processor. Neither will 50C. Ever. Surface mount components are baked to the board when they are installed, and this happens at temperatures well over 200C.
The only risks are frying the CPU's power supply, the unit's SMPS, or overdrawing the battery. That or dielectric breakdown due to excessive voltage, but this happens instantly, not over time.