Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 470224

Summary: Add qawarn for -Wsizeof-pointer-memaccess
Product: Portage Development Reporter: Ryan Hill (RETIRED) <rhill>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: QA Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 468524    
Attachments: sizeof-pointer-warn.patch

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.