-Wunused-local-typedefs -Wsizeof-pointer-memaccess build warnings

Bug #1186190 reported by Raghavendra D Prabhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
Low
Unassigned
5.1
Fix Released
Low
Laurynas Biveinis
5.5
Fix Released
Low
Unassigned
5.6
Fix Released
Low
Unassigned

Bug Description

Seeing many warnings of the following type:

-Wunused-local-typedefs
-Wsizeof-pointer-memaccess

Full log here http://paste.wnohang.net/1a5446

Tags: upstream

Related branches

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

To add, this is with gcc 4.8.0.

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Raghu -

Almost all if not all of these warnings are in the upstream code, so please report it there on their sources. Setting to Incomplete until then.

This will become a problem once some platform we support starts using GCC 4.8 by default, and the upstream will have the same issue and presumably will fix.

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Ack, I will report it upstream as well after I build from it.
Regarding platform, yeah, gcc 4.8 is not part of our supported
platforms but I reported because I presumed there may be bugs in
the code highlighted by them, but they may all be false positives
as well.

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :
summary: - Warnings while building
+ -Wunused-local-typedefs -Wsizeof-pointer-memaccess build warnings
tags: added: upstream
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Ubuntu 13.10 now has GCC 4.8 by default.

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Upstream fix in 5.5.33:

5.5$ bzr log -r 4387
------------------------------------------------------------
revno: 4387
committer: Tor Didriksen <email address hidden>
branch nick: 5.5
timestamp: Fri 2013-06-14 10:52:23 +0200
message:
  Bug#16729109: FIX COMPILATION WARNINGS WITH GCC 4.8
  Backport to 5.5
  (external Bug#69407 Build warnings with mysql)

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Upstream fix in 5.6.13:

5.6$ bzr log -r 5090
------------------------------------------------------------
revno: 5090
committer: Jon Olav Hauglid <email address hidden>
branch nick: mysql-5.6
timestamp: Tue 2013-05-07 16:32:50 +0200
message:
  Backport from mysql-5.6 to mysql-trunk of:
  ------------------------------------------------------------
  revno: 5627
  committer: Jon Olav Hauglid <email address hidden>
  branch nick: mysql-trunk-test
  timestamp: Fri 2013-04-26 15:05:25 +0200
  message:
    Bug#16729109: FIX COMPILATION WARNINGS WITH GCC 4.8

    Fix GCC 4.8 compilation warnings from new checks:
    -Werror=unused-local-typedefs
    -Werror=sizeof-pointer-memaccess

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-2024

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.