Completing fix from commit 3cb70e67. Checking further into libtiff logs, I can see another version of the warning message for private tags which was used before libtiff 3.7. For sake of completeness, let's check against this version of the warning as well.