Changeset c42a8d1


Ignore:
Timestamp:
Oct 29, 2012, 11:23:49 PM (9 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master
Children:
fb67068, 176c22b, 0125e46, ccc182c, a90bd2f
Parents:
0792d99
git-author:
Anders Kaseorg <andersk@mit.edu> (08/21/12 03:55:41)
git-committer:
Anders Kaseorg <andersk@mit.edu> (10/29/12 23:23:49)
Message:
typedef fake curses and Perl types to undefined structs instead of void

This increases type safety and fixes warnings with gcc-4.7 -flto:

owl.h:606:19: warning: type of ‘g’ does not match original declaration [enabled by default]
owl.c:26:12: note: previously declared here

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    rcb124fc6 rc42a8d1  
    4747/* Perl and curses don't play nice. */
    4848#ifdef OWL_PERL
    49 typedef void WINDOW;
    50 typedef void PANEL;
     49typedef struct _owl_fake_WINDOW WINDOW;
     50typedef struct _owl_fake_PANEL PANEL;
    5151/* logout is defined in FreeBSD. */
    5252#define logout logout_
     
    5757#include "XSUB.h"
    5858#else
    59 typedef void SV;
    60 typedef void AV;
    61 typedef void HV;
     59typedef struct _owl_fake_SV SV;
     60typedef struct _owl_fake_AV AV;
     61typedef struct _owl_fake_HV HV;
    6262#endif
    6363
Note: See TracChangeset for help on using the changeset viewer.