# Nice compiler options

**URL:** <https://fortran-lang.discourse.group/t/nice-compiler-options/366>\
**Category:** Uncategorized\
**Created:** [October 24, 2020, 7:47pm UTC](https://fortran-lang.discourse.group/t/nice-compiler-options/366 "2020-10-24T19:47:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Beliavsky](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@Beliavsky](https://fortran-lang.discourse.group/u/Beliavsky)\
**Post date:** [November 13, 2020, 11:14pm UTC](https://fortran-lang.discourse.group/t/nice-compiler-options/366/3 "2020-11-13T23:14:48Z")

</div>

Gfortran is my main compiler and is excellent, but g95 is my sentimental favorite and has good compile-time checks. It does not support much of Fortran 2003 and beyond.

The result of compiling the code above with the options I use, g95 -c -Wall -Wextra -Wimplicit-none -Werror=100,113,115,137,146,147,159,163 -ftrace=full -fbounds-check -freal=nan -fmodule-private -Wno=112,167 is

In file xxmain.f90:9

```
type(Foo) :: f
             1

```

Error (113): Variable ‘f’ at (1) is used but not set

---

_[View the full topic](https://fortran-lang.discourse.group/t/nice-compiler-options/366)._
