! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
[xdt-features.m4] The -Wshadow flag shouldn't be used when enable_debug=full ...
Status:
RESOLVED: FIXED
Product:
Xfce4-dev-tools
Component:
General

Comments

Description Matt32 2015-03-03 22:00:06 CET
The '-Wshadow' flag  is broken in gcc and prevents valid code to be compiled when '-Werror' flag is used. 

This is the case when enable_debug=full.
For example, 'xfce4-settings' cannot be compiled with enable_debug=full.

xdt-features.m4 needs a patch to remove '-Wshadow' when enable_debug='full'. It can be kept with enable_debug='yes'

http://git.xfce.org/xfce/xfce4-dev-tools/tree/m4macros/xdt-features.m4

Arguments:
https://lkml.org/lkml/2006/11/28/239
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57709
Comment 1 Matt32 2015-03-13 12:33:44 CET
Created attachment 6077 
[PATCH] Fix -Wshadow flag

Bug #11637

Reported by:
Matt32
Reported on: 2015-03-03
Last modified on: 2015-03-13

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Attachments

[PATCH] Fix -Wshadow flag (1.85 KB, patch)
2015-03-13 12:33 CET , Matt32
no flags

Additional information