URL:
  <http://gna.org/bugs/?19787>

                 Summary: Compilation error under gcc 4.5.2: "error:
redefinition of typedef ‘MyPaintFixedTiledSurface’"
                 Project: MyPaint
            Submitted by: achadwick
            Submitted on: Wed Jun  6 13:48:43 2012
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: git 4831b29
         Planned Release: None
        Operating System: Ubuntu 11.04

    _______________________________________________________

Details:

Compiling git master rev 4831b29 (Mon Jun 4 20:08:28 2012 +0200) under Ubuntu
Natty (11.04)'s gcc 4.5.2-8ubuntu4 fails on the line


[...]
gcc -o brushlib/mypaint-fixed-tiled-surface.os -c -std=c99 -Wall -pthread
-fPIC -Ibrushlib -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include
brushlib/mypaint-fixed-tiled-surface.c
brushlib/mypaint-fixed-tiled-surface.c:24:3: error: redefinition of typedef
‘MyPaintFixedTiledSurface’
brushlib/mypaint-fixed-tiled-surface.h:15:41: note: previous declaration of
‘MyPaintFixedTiledSurface’ was here
brushlib/mypaint-fixed-tiled-surface.c: In function ‘area_changed’:
brushlib/mypaint-fixed-tiled-surface.c:98:31: warning: unused variable
‘self’
scons: *** [brushlib/mypaint-fixed-tiled-surface.os] Error 1
scons: building terminated because of errors.


for a pristine source tree. Moving the typedef into the header fixes things,
but is that what's wanted here? Converting mypaint-fixed-tiled-surface.c's
typedef to a raw "struct _MyPaintGeglTiledSurface" declaration also fixes it
(if we want the struct's members to remain hidden.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?19787>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs

Reply via email to