Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36d1835

Browse files
author
Thomas G. Lockhart
committed
Change dummy array dimensions from [0] to [1] to keep non-gcc compilers happy.
No real change in the support code is required since the actual size of the structures is calculated using offsetof() rather than sizeof().
1 parent6e27af1 commit36d1835

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/include/utils/geo_decls.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright (c) 1994, Regents of the University of California
77
*
8-
* $Id: geo_decls.h,v 1.3 1997/04/25 18:40:50 scrappy Exp $
8+
* $Id: geo_decls.h,v 1.4 1997/05/06 07:24:42 thomas Exp $
99
*
1010
* NOTE
1111
* These routines do *not* use the float types from adt/.
@@ -84,7 +84,7 @@ typedefstruct {
8484
int32npts;
8585
int32closed;/* is this a closed polygon? */
8686
int32dummy;/* padding to make it double align */
87-
Pointp[0];/* variable length array of POINTs */
87+
Pointp[1];/* variable length array of POINTs */
8888
}PATH;
8989

9090

@@ -119,7 +119,7 @@ typedef struct {
119119
int32size;/* XXX varlena */
120120
int32npts;
121121
BOXboundbox;
122-
Pointp[0];/* variable length array of POINTs */
122+
Pointp[1];/* variable length array of POINTs */
123123
}POLYGON;
124124

125125
/*---------------------------------------------------------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp