<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - warn_unused_result noise"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=58727">58727</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>warn_unused_result noise
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr>

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

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dmacks@netspace.org
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>1.12.8
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Building cairo-1.12.8 on OS X 10.6 against pixman-0.28.2, I get a bunch of
warnings about ignored return-codes of functions that assert that their return
should not be ignored:

cairo-path-stroke-polygon.c: In function 'add_caps':
cairo-path-stroke-polygon.c:944: warning: ignoring return value of
'_cairo_polygon_add_contour', declared with attribute warn_unused_result
cairo-path-stroke-polygon.c:961: warning: ignoring return value of
'_cairo_polygon_add_contour', declared with attribute warn_unused_result
cairo-path-stroke-polygon.c:976: warning: ignoring return value of
'_cairo_polygon_add_contour', declared with attribute warn_unused_result
cairo-path-stroke-polygon.c:981: warning: ignoring return value of
'_cairo_polygon_add_contour', declared with attribute warn_unused_result
cairo-path-stroke-polygon.c: In function 'close_path':
cairo-path-stroke-polygon.c:1226: warning: ignoring return value of
'_cairo_polygon_add_contour', declared with attribute warn_unused_result
cairo-path-stroke-polygon.c:1227: warning: ignoring return value of
'_cairo_polygon_add_contour', declared with attribute warn_unused_result

cairo-polygon-intersect.c: In function 'edges_end':
cairo-polygon-intersect.c:1162: warning: ignoring return value of
'_cairo_polygon_add_line', declared with attribute warn_unused_result
cairo-polygon-intersect.c:1163: warning: ignoring return value of
'_cairo_polygon_add_line', declared with attribute warn_unused_result
cairo-polygon-intersect.c: In function '_cairo_polygon_intersect_with_boxes':
cairo-polygon-intersect.c:1519: warning: ignoring return value of
'_cairo_polygon_add_external_edge', declared with attribute warn_unused_result
cairo-polygon-intersect.c:1522: warning: ignoring return value of
'_cairo_polygon_add_external_edge', declared with attribute warn_unused_result
cairo-polygon-reduce.c: In function '_cairo_bo_edge_end':
cairo-polygon-reduce.c:1163: warning: ignoring return value of
'_cairo_polygon_add_line', declared with attribute warn_unused_result
cairo-polygon-reduce.c:1167: warning: ignoring return value of
'_cairo_polygon_add_line', declared with attribute warn_unused_result

cairo-rectangular-scan-converter.c: In function 'generate_row':
cairo-rectangular-scan-converter.c:625: warning: ignoring return value of
function declared with attribute warn_unused_result

cairo-surface-observer.c: In function 'sync':
cairo-surface-observer.c:665: warning: ignoring return value of
'_cairo_surface_unmap_image', declared with attribute warn_unused_result

Do they need their return-codes handled, or do their prototypes (in cairoint.h
I think) need to allow their return-codes to be ignoreable?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>