<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - -Werror=incompatible-pointer-types does not apply to all warnings of that kind"
   href="https://bugs.llvm.org/show_bug.cgi?id=49477">49477</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-Werror=incompatible-pointer-types does not apply to all warnings of that kind
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hanauska@equinux.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>-Werror=incompatible-pointer-types is set, still the following is just a
warning and not an error:

Assigning to 'id<SomeProtocol> _Nonnull' from incompatible type 'NSString
*__strong'

Also the following is just a warning, not an error:

Sending '__strong id<SomeProtocol>' to parameter of incompatible type 'NSString
* _Nonnull'

It tells me that the type is incompatible and it is absolutely correct about
it. NSString does not implement that protocol, so it cannot match the type.

Just in case it only complains about qualifiers, I also added
-Werror=incompatible-pointer-types-discards-qualifiers but it still only stays
a warning.

The documentation lists on no other warning flag that can produce this warning
and that I could use to propagate this into an error.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>