Skip to content

Commit

Permalink
fix Issue 17255 - Warning when compiling ddmd.backend/ptrntab.c about…
Browse files Browse the repository at this point in the history
… type-punning
  • Loading branch information
WalterBright committed Mar 14, 2017
1 parent 0089ae0 commit a22284b
Show file tree
Hide file tree
Showing 2 changed files with 842 additions and 843 deletions.
1 change: 1 addition & 0 deletions src/ddmd/backend/iasm.h
Expand Up @@ -414,6 +414,7 @@ typedef struct _PTRNTAB0 {
} PTRNTAB0, * PPTRNTAB0, ** PPPTRNTAB0;

typedef union _PTRNTAB {
void *ppt; // avoid type-punning warnings
PTRNTAB0 *pptb0;
PTRNTAB1 *pptb1;
PTRNTAB2 *pptb2;
Expand Down

0 comments on commit a22284b

Please sign in to comment.