Merge lp:~sil2100/unity/fix_ftbfs_arm_unused_typedefs into lp:unity

Proposed by Łukasz Zemczak
Status: Merged
Merged at revision: 3360
Proposed branch: lp:~sil2100/unity/fix_ftbfs_arm_unused_typedefs
Merge into: lp:unity
Diff against target: 16 lines (+6/-0)
1 file modified
CMakeLists.txt (+6/-0)
To merge this branch: bzr merge lp:~sil2100/unity/fix_ftbfs_arm_unused_typedefs
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Stephen M. Webb (community) Approve
Review via email: mp+167525@code.launchpad.net

Commit message

Add a flag for -Wno-error=unused-local-typedefs, since this causes a FTBFS on ARM

Description of the change

- Problem:

Due to the recent switch to saucy, ARM builds stopped working due to a -Werror=unused-local-typedefs issue with the tests (MOCK objects).

- Fix:

The fastest way of dealing with it is simply disabling unused-local-typedefs with a -Wno-error=unused-local-typedefs in the CMakeLists.txt file. We add an option to enable/disable this whenever needed.

- Tests:

N/A

To post a comment you must log in.
Revision history for this message
Stephen M. Webb (bregma) wrote :

I'm all in favour of this. Erroring on unused typedefs is nonsense most of the time anyway.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2013-05-29 01:42:16 +0000
3+++ CMakeLists.txt 2013-06-05 12:37:46 +0000
4@@ -194,6 +194,12 @@
5 endif (BOOT_LOGGER)
6
7 SET (MAINTAINER_CXXFLAGS "-Werror -Wall -Wcast-align -Wempty-body -Wformat-security -Winit-self -Warray-bounds")
8+
9+option (DISABLE_ERROR_ON_LOCAL_TYPEDEFS_WARNINGS "Disable errors when local typedefs are unused" ON)
10+if (DISABLE_ERROR_ON_LOCAL_TYPEDEFS_WARNINGS)
11+ SET (MAINTAINER_CXXFLAGS "${MAINTAINER_CXXFLAGS} -Wno-error=unused-local-typedefs")
12+endif (DISABLE_ERROR_ON_LOCAL_TYPEDEFS_WARNINGS)
13+
14 option (DISABLE_MAINTAINER_CXXFLAGS "Disable maintainer CXXFlags" OFF)
15 if (DISABLE_MAINTAINER_CXXFLAGS)
16 SET (MAINTAINER_CXXFLAGS "")