[ icewm-Bugs-3494034 ] Uses "deprecated" as identifier, FTBFS against X1.4.99

SourceForge.net <[email protected]> Thu, 21 Mar 2013 20:00:01 -0700
Newsgroups gmane.comp.window-managers.icewm.devel
Message-ID <[email protected]>
Bugs item #3494034, was opened at 2012-02-25 05:15
Message generated for change (Comment added) made by r0bnewt0n
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100031&aid=3494034&group_id=31

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: icewm-1.3
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: amoog (amoog)
Assigned to: Nobody/Anonymous (nobody)
Summary: Uses "deprecated" as identifier, FTBFS against X1.4.99

Initial Comment:
In src/base.h, icewm declares:

#define deprecated __attribute__((deprecated))

This gives a buildfailure against x11 1.4.99, which itself contains some deprecation-declarations:

make[3]: Entering directory `/root/icewm-1.3.7/src'
  CXX      ymsgbox.o
  CXX      ydialog.o
  CXX      yurl.o
  CXX      wmsession.o
In file included from ylib.h:9:0,
                 from ykey.h:4,
                 from yfull.h:4,
                 from wmsession.cc:13:
/usr/include/X11/Xlib.h:1694:1: error: 'deprecated' was not declared in this scope
make[3]: *** [wmsession.o] Error 1

The solution is really simple, change the define to:
#define ICEWM_deprecated __attribute__((deprecated))

There are no other uses of this define.

Cheers,

Andreas

----------------------------------------------------------------------

Comment By: r0bnewt0n (r0bnewt0n)
Date: 2013-03-21 20:00

Message:
I had this same compile error also.  The recommended fix worked a treat!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100031&aid=3494034&group_id=31

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar