Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | fix host gcc warnings |
| 2 | |
| 3 | Remove gcc warnings when gcc is v3.2 |
| 4 | |
| 5 | Upstream-Status: Pending |
| 6 | |
| 7 | Signed-of-by: Aws Ismail <aws.ismail@windriver.com> |
| 8 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 9 | Index: openhpi-3.6.1/configure.ac |
| 10 | =================================================================== |
| 11 | --- openhpi-3.6.1.orig/configure.ac |
| 12 | +++ openhpi-3.6.1/configure.ac |
| 13 | @@ -656,11 +656,6 @@ AC_ARG_ENABLE([werror], |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 14 | fi], |
| 15 | []) |
| 16 | |
| 17 | -if test -n "`gcc --version | grep ' 3.2'`" ; then |
| 18 | - CC_WARNINGS=`echo $CC_WARNINGS | sed -e 's/-Wno-strict-aliasing//g'` |
| 19 | - CXX_WARNINGS=`echo $CC_WARNINGS | sed -e 's/-Wno-strict-aliasing//g'` |
| 20 | -fi |
| 21 | - |
| 22 | case $host_os in |
| 23 | solaris*) |
| 24 | CC_WARNINGS=`echo $CC_WARNINGS | sed -e 's/-Wcast-qual//g'` |