[prev in list] [next in list] [prev in thread] [next in thread] 

List:       oprofile-commits
Subject:    [oprof-cvs] [SF SCMS]oprofile branch master updated. d3a2c66ebf4c8e00efd482601c11eec0c5e0a07f
From:       "Maynard Johnson" <maynardj () users ! sourceforge ! net>
Date:       2013-01-21 16:51:54
Message-ID: E1TxKbS-0007Sy-U9 () sfs-ml-3 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "oprofile".

The branch, master has been updated
       via  d3a2c66ebf4c8e00efd482601c11eec0c5e0a07f (commit)
      from  6b0ad612ec8688afc80549e5725f802301a622d8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d3a2c66ebf4c8e00efd482601c11eec0c5e0a07f
Author: Maynard Johnson <maynardj@us.ibm.com>
Date:   Mon Jan 21 10:38:14 2013 -0600

    Fix compile warnings/errors with gcc 4.7.3
    
    On some distros, the struct poptOption in /usr/include/popt.h
    has the argInfo field defined as int, but on other distros,
    that field is defined as unsigned int.  In libopt++/popt_options.cpp,
    the option_base::option_base constructor passes an unsigned int
    popt_flags argument that's intended to be assigned to the
    argInfo field.  With gcc 4.7.1, the following warning(error) occurs
    on systems where the argInfo field is defined as an int:
    
    --------------
    popt_options.cpp: In constructor `popt::option_base::option_base
    (const char*, char, const char*, const char*, void*, unsigned int)':
    popt_options.cpp:255:51: error: narrowing conversion of `popt_flags'
    from `unsigned int' to `int' inside { } is ill-formed in C++11 [-Werror=narrowing]
    cc1plus: all warnings being treated as errors
    --------------
    
    The fix for this problem is to cast the popt_flags to the appropriate
    type using 'typeof(opt.argInfo)'.
    
    The second compile error (in pe_profiling/operf.cpp) is happening
    because the variable 'value' is assigned, but not used after that.
    This is dead code that should be removed.
    
    Signed-off-by: Maynard Johnson <maynardj@us.ibm.com>

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

Summary of changes:
 libopt++/popt_options.cpp |    2 +-
 pe_profiling/operf.cpp    |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
oprofile

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Oprofile-commits mailing list
Oprofile-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic