Hello,

This series of patches adds some warnings for gcc and some for clang which
help to make safer code:
 - patch 1 fixes the detection for 'unused-macro' which did not work;
 - patch 2 and 3 add more flags;
 - patch 4 turns the trampoline warning into an error if possible;
 - patch 5 to 23 fix many of the 'unused-macro' warnings.

Regards,
Christophe.


 WINGs/dragdestination.c |   2 -
 WINGs/wballoon.c        |   5 ---
 WINGs/wbutton.c         |   1 -
 WINGs/wcolorpanel.c     |  21 +++-------
 WINGs/wcolorwell.c      |   1 -
 WINGs/wfontpanel.c      |   2 -
 WINGs/widgets.c         |  13 ------
 WINGs/wscroller.c       |   4 +-
 WINGs/wwindow.c         |  29 +------------
 WPrefs.app/Menu.c       |   1 -
 WPrefs.app/WPrefs.c     |   3 --
 configure.ac            |  59 ++++++++++++++++++++++++---
 m4/wm_cflags_check.m4   | 106 ++++++++++++++++++++++++++++++++++++++++++++++++
 m4/wm_libmath.m4        |  19 +++++++++
 src/balloon.c           |   5 ---
 src/framewin.c          |   2 -
 src/menu.c              |  14 ++-----
 src/motif.c             |  31 ++++++++++++++
 src/moveres.c           |   4 --
 src/switchpanel.c       |   1 -
 src/wconfig.h.in        |   1 -
 src/wmspec.c            |  17 ++++++++
 src/workspace.c         |   1 -
 util/getstyle.c         |   3 --
 util/wmsetbg.c          |   3 --
 wrlib/rotate.c          |  19 ++++-----
 wrlib/scale.c           |   7 +---
 27 files changed, 248 insertions(+), 126 deletions(-)

-- 
2.1.3


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to