Sun Studio 12 Update 1: C++ User's Guide

Warnings

Note that warnings are generated only when you compile in 64-bit mode by specifying options such as -m64.