Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 470224 - Add qawarn for -Wsizeof-pointer-memaccess
Summary: Add qawarn for -Wsizeof-pointer-memaccess
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 468524
  Show dependency tree
 
Reported: 2013-05-18 05:59 UTC by Ryan Hill (RETIRED)
Modified: 2013-05-19 00:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
sizeof-pointer-warn.patch (sizeof-pointer-warn.patch,570 bytes, patch)
2013-05-18 05:59 UTC, Ryan Hill (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2013-05-18 05:59:51 UTC
Created attachment 348582 [details, diff]
sizeof-pointer-warn.patch

This warning is new in gcc 4.8 and is serious enough for a qawarn.

Alternatively since all warnings since 4.6 append the flag name we could just grep for ": warning: .*\[-Wsizeof-pointer-memaccess\]" and not worry about the string changing in the future.
Comment 1 Zac Medico gentoo-dev 2013-05-18 19:02:00 UTC
Thanks, this is in git:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=160b22ef09edf8b81f68d41b26360fb2525790ba

I used the .*\[-Wsizeof-pointer-memaccess\] expression as you suggested.
Comment 2 Zac Medico gentoo-dev 2013-05-19 00:25:31 UTC
This is fixed in 2.1.12.1 and 2.2.0_alpha176.