<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/60495>60495</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Flang `-Wextra` behaviour
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          EthanLuisMcDonough
      </td>
    </tr>
</table>

<pre>
    Hi all.  I was trying to use Flang to build a CMake project configured with gfortran in mind, and the build broke because CMake passed the `-Wextra` flag into flang-new.  `-Wall` only yields a warning, but `-Wextra` interrupts the process completely.  Was this an intentional decision?  If so, what was the reason behind this decision?  I know that unknown arguments throw errors, but I think it would be preferable to emit a warning for `-Wextra`, given it is an argument present in other compilers.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckk9v4zgMxT-NfCFiOHLiJgcfdtsNtsD03DNl0xYnChXoTz359gM5KYr2JBkmf3yPehgjz0LUq_2_av9SYU7Wh_6_ZFF-ZY5vw4sXn2dbGT_e-v8Z0Lka4BUWjJDCjWWG5CFHgpPD-4fJ7EZAeH7DM8E1-N80JBi8TDznQCMsnCzMkw8poAALXFhGpZ8BZYRk6UEwwZ8JDA1Y8A8axkj3ItU1m3f6kwKqroHJ4QwsyZebzBuhpYZ7DTpXKry4G9yY3BgBYcEgLHOZanL6AWNJFEK-prhOugY_UIww-MvVUSJ3qwHeywIsR1gtJJLEXtDBSANH9qLaE8DrBNGXGYvFdN-ZJQiE0QsYsrwa5vijC87iF0ilJ0u5C2CY84VkVRT8AhSCD_FT_muhyBk4weJz2V1RTRMFNI7Ko9CF05dtmHz47rmQZv4gKYy7q8-RhRTLyQI-WQrrIthRiHU19u14bI9YUb_tnvbtodm2urI9drsDPTVmN0xHOuynhtpxv6XmqFt9GHFfca8b3Ta60brVeqtr05luPOAw6WM7jUOndg1dkF3t3Mel9mGuOMZMfdfsjvvKoSEX19xqLbTA-lNpXWIc-tKzMXmOatc4jil-URInR_09rd-f3ZDFD_Y5VDm43qZ0jar9R-mT0qeZk82mHvxF6VNhPY7NI99Kn1YFUenTqvBvAAAA__-kLiKX">