Sun Studio 12: C User's Guide

B.2.60 -v

Directs the compiler to perform stricter semantic checks and to enable other lint-like checks. For example, the code:


#include <stdio.h>
main(void)
{
     printf("Hello World.\n");
}

compiles and executes without problem. With -v, it still compiles; however, the compiler displays this warning:


"hello.c", line 5: warning: function has no return statement:
 main

-v does not give all the warnings that lint(1) does. Try running the above example through lint.