Connecting DS3231 RTC SQW pin to Uno R3 - preventing RTC battery from being charged

On some DS3231 modules, the power circuit contains an error, so the battery is always under supply voltage. In such modules, it is advisable to remove the part of charging circuit to prevent damage to the battery.

As far as I know, this has nothing to do with the SQW pin.

See this thread for details: