List:Commits« Previous MessageNext Message »
From:Tor Didriksen Date:December 8 2010 11:36am
Subject:Re: bzr commit into mysql-5.1-bugteam branch (davi:3512) Bug#57991
View as plain text  
Looks good.

btw. there are tons of warnings with icc:

$icc --version
icc (ICC) 11.0 20090131
Copyright (C) 1985-2009 Intel Corporation.  All rights reserved.


ctype-utf8.c(2383): warning #592: variable "s_wc" is used before its value
is set
    my_wc_t UNINIT_VAR(s_wc),t_wc;

../include/m_ctype.h(216): warning #1287: invalid attribute for field
"snprintf"
                       ...) ATTRIBUTE_FORMAT_FPTR(printf, 4, 5);


-- didrik


On Tue, Dec 7, 2010 at 3:57 PM, Davi Arnaut <davi.arnaut@stripped> wrote:

> # At a local mysql-5.1-bugteam repository of davi
>
>  3512 Davi Arnaut       2010-12-07
>      Bug#57991: Compiler flag change build error : adler32.c
>
>      Do not used the same maintainer mode flags for both GCC and
>      ICC. The -Wall option for ICC enables more warnings than its
>      GCC counterpart.
>
>    modified:
>      config/ac-macros/maintainer.m4
> === modified file 'config/ac-macros/maintainer.m4'
> --- a/config/ac-macros/maintainer.m4    2010-11-05 13:17:47 +0000
> +++ b/config/ac-macros/maintainer.m4    2010-12-07 14:57:47 +0000
> @@ -15,8 +15,11 @@ AC_DEFUN([MY_MAINTAINER_MODE], [
>
>  # Set warning options required under maintainer mode.
>  AC_DEFUN([MY_MAINTAINER_MODE_WARNINGS], [
> +  # Detect ICC posing as GCC.
> +  AC_EGREP_CPP([^__INTEL_COMPILER], [__INTEL_COMPILER],
> +               [INTEL_COMPILER=no], [INTEL_COMPILER=yes])
>   # Setup GCC warning options.
> -  AS_IF([test "$GCC" = "yes"], [
> +  AS_IF([test "$GCC" = "yes" -a "$INTEL_COMPILER" = "no"], [
>     C_WARNINGS="-Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing
> -Werror"
>     CXX_WARNINGS="${C_WARNINGS} -Wno-unused-parameter"
>     C_WARNINGS="${C_WARNINGS} -Wdeclaration-after-statement"
>
>
>
> --
> MySQL Code Commits Mailing List
> For list archives: http://lists.mysql.com/commits
> To unsubscribe:
> http://lists.mysql.com/commits?unsub=1
>

Thread
bzr commit into mysql-5.1-bugteam branch (davi:3512) Bug#57991Davi Arnaut7 Dec
Re: bzr commit into mysql-5.1-bugteam branch (davi:3512) Bug#57991Tor Didriksen8 Dec
  • Re: bzr commit into mysql-5.1-bugteam branch (davi:3512) Bug#57991Davi Arnaut8 Dec