From 1fdd04c554e0720b385ff770be02a8bd0ff6afb1 Mon Sep 17 00:00:00 2001 From: nigels Date: Tue, 30 Dec 2003 02:22:11 +0000 Subject: [PATCH] Replace assignment of array to struct with field-by-field assignment suppress gcc -Wall -pendantic "noise" git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@428 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/freeglut_cursor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/freeglut/freeglut/src/freeglut_cursor.c b/freeglut/freeglut/src/freeglut_cursor.c index bda8083..63b9070 100644 --- a/freeglut/freeglut/src/freeglut_cursor.c +++ b/freeglut/freeglut/src/freeglut_cursor.c @@ -253,7 +253,10 @@ void FGAPIENTRY glutWarpPointer( int x, int y ) #elif TARGET_HOST_WIN32 { - POINT coords = { x, y }; + POINT coords; + coords.x = x; + coords.y = y; + /* * ClientToScreen() translates {coords} for us. */