Project

General

Profile

ActionsLike0

Bug #10079

closed

Warnings in definition of macro 'PACKED_STRUCT'

Added by gustavo.pedrosa (Gustavo Frederico Temple Pedrosa) over 10 years ago. Updated over 10 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 2.2.0dev (2014-07-21 trunk 46893) [powerpc64le-linux]
[ruby-core:63919]

Description

After the commit db433dc39d07449184a908d417919e3de8b70405, the building shows many warnings like below:

compiling pty.c
In file included from pty.c:1:0:
../.././include/ruby/io.h:54:30: warning: 'packed' attribute ignored [-Wattributes]
 PACKED_STRUCT(typedef struct {
                              ^
../../.ext/include/powerpc64le-linux/ruby/config.h:71:26: note: in definition of macro 'PACKED_STRUCT'
 #define PACKED_STRUCT(x) x __attribute__((packed))
                          ^

Added by Eric Wong over 10 years ago

Revision 8cb5f8be

rb_io_buffer_t: fix packing on gcc

  • include/ruby/io.h (rb_io_buffer_t): fix packing on gcc
    r46892 caused packing to be a no-op on gcc (4.7.2-5, Debian)
    [Bug #10079][ruby-core:63912]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

ActionsLike0

Also available in: Atom PDF