Sun Studio 12: Fortran Programming Guide

6.3.1.1 Turning Off All Warning Messages With ieee_flags

Calling ieee_flags with an action of clear, as shown in the following example, resets any uncleared exceptions. Put this call before the program exits to suppress system warning messages about floating-point exceptions at program termination.

Example: Clear all accrued exceptions with ieee_flags():


      i = ieee_flags(’clear’, ’exception’, ’all’, out )