Menu

#804 compilation warning

Last release
closed
None
2
2015-03-30
2013-04-06
Anonymous
No

Building libmtp-1.1.6 I got this compilation warnings:
ptp.c:2614:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
ptp.c:2616:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

Discussion

  • Linus Walleij

    Linus Walleij - 2013-04-09
    • status: open --> accepted
    • assigned_to: Linus Walleij
    • Priority: 9 --> 2
     
  • Linus Walleij

    Linus Walleij - 2013-04-09
    • assigned_to: Linus Walleij --> Marcus Meissner
     
  • Linus Walleij

    Linus Walleij - 2013-04-09

    Hm it's in ptp.c so routing to Marcus, beat me back if it's my fault anyway...

     
  • Ilya Gordeev

    Ilya Gordeev - 2013-12-12

    In addition to previous report, building libmtp-1.1.6 by gcc-4.8.2 I'v got one more compilation warning:
    mtpz.c:259:23: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]

     
  • Reverend Homer

    Reverend Homer - 2015-03-30
    • status: accepted --> pending
    • assigned_to: Marcus Meissner --> Reverend Homer
     
  • Marcus Meissner

    Marcus Meissner - 2015-03-30
    • status: pending --> closed
     
  • Marcus Meissner

    Marcus Meissner - 2015-03-30

    not reproducible, otherwise I wpould have fixed it

    memset is also fixed already via commit 1bf919f6295038baa5de725569c5852f83d76039

    -> close

     
    • Reverend Homer

      Reverend Homer - 2015-03-30

      But we have other compilation warnings. Do we need to create a new bug for it?

      Maybe I'll just check it by myself later...

       
  • Marcus Meissner

    Marcus Meissner - 2015-03-30

    if you se compilation warnings, just fix them.

     

Anonymous
Anonymous

Add attachments
Cancel





Monday.com Logo