Re: libdrm: Fixing compilers warnings

2009-07-24 Thread Pauli Nieminen
On Tue, Jul 21, 2009 at 12:21 PM, Julien Cristau wrote: > On Mon, Jul 20, 2009 at 19:17:01 +0300, Pauli Nieminen wrote: > > > >From b7e77b71d1f2d8ff6741e534911e09f10e3f3d4e Mon Sep 17 00:00:00 2001 > > From: Pauli Nieminen > > Date: Mon, 20 Jul 2009 14:39:57 +0300 > > Subject: [PATCH 01/15] libdr

Re: libdrm: Fixing compilers warnings

2009-07-21 Thread Julien Cristau
On Mon, Jul 20, 2009 at 19:17:01 +0300, Pauli Nieminen wrote: > >From b7e77b71d1f2d8ff6741e534911e09f10e3f3d4e Mon Sep 17 00:00:00 2001 > From: Pauli Nieminen > Date: Mon, 20 Jul 2009 14:39:57 +0300 > Subject: [PATCH 01/15] libdrm: Add function attribute for debug > functions to let gcc check par

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
And then follows fixes for all tests. From 1cd7a914be3fc5ee8aabdd2297710f5c781b555f Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 21:36:57 +0300 Subject: [PATCH 1/4] libdrm/tests: Fix compiler warnings in dristat.c. --- tests/dristat.c | 12 1 files changed,

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From 36aef4bf07154ef6d206f15ff1c036a7f8e368a9 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 18:33:03 +0300 Subject: [PATCH 14/15] libdrm/radeon: Add config.h include to enable POSIX extensions for strdup call. --- libdrm/radeon/radeon_track.c |3 +++ 1 files changed,

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From 9c0cd0ba5bb5966498cad2c5a8c69ec24c4c8e34 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 18:40:49 +0300 Subject: [PATCH 15/15] Fix signed/unsigned comparison warning --- libdrm/radeon/radeon_cs_gem.c | 13 +++-- 1 files changed, 7 insertions(+), 6 deletions(-

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From 0c8b7939fc95084d77063eb8de78b0724d3d4058 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 17:00:45 +0300 Subject: [PATCH 11/15] libdrm: Make pci id numbers unsigned for sscanf. --- libdrm/xf86drmMode.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff -

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From dea4cebdb49556ab06930bd5a4d303ce1c0b85c7 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 17:19:55 +0300 Subject: [PATCH 12/15] intel: Move debug output after setting the value. --- libdrm/intel/intel_bufmgr_fake.c |4 ++-- 1 files changed, 2 insertions(+), 2 deleti

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From 9043299720ef5ecac1fe575b0bbda19b81720dd8 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 18:00:43 +0300 Subject: [PATCH 13/15] libdrm/radeon: Remove unussed variables and make printf happy with explicity void* cast from struct radeon_bo*. --- libdrm/radeon/radeon_bo.h

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From 6ad9d2f1495df9bbdecbe4e7676da75d48ba3719 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 16:55:21 +0300 Subject: [PATCH 10/15] libdrm: Make drmAllocCpy use only single memcpy call instead of calling memcpy in loop. --- libdrm/xf86drmMode.c |4 +--- 1 files changed,

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From 69cad004e5355e4adcee753de4da91c98949d3df Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 16:50:20 +0300 Subject: [PATCH 09/15] libdrm: Make drmAllocCpy static. --- libdrm/xf86drmMode.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libdrm/xf8

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From 7fcfbf715644d2268236b8a19d1f2f83c952d72b Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 16:25:59 +0300 Subject: [PATCH 07/15] libdrm: Fix random number generator to use unsigned seed. This fixes wanring about unsigned/signed comparision. Also make it easier to compile

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From 10a9bf298be4695242bcdb63bcfad720e03bf040 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 16:31:54 +0300 Subject: [PATCH 08/15] libdrm: Make gcc to understand that pointers are realy pointers. --- libdrm/xf86drmSL.c |6 +++--- 1 files changed, 3 insertions(+), 3 del

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From 78bfacedfb3b81968b2171a942101d323b1782cb Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 15:48:48 +0300 Subject: [PATCH 06/15] libdrm: Fix loop index variable type to match the type of count --- libdrm/xf86drm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletion

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From 3eb4a3493f13c48bee1b2453f5ecead0ba498c51 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 15:45:41 +0300 Subject: [PATCH 05/15] libdrm: Fix drmOpenDevice to take dev_t type as parameter. This fixes signed/unsigned comparission between st.st_dev and dev. --- libdrm/xf86d

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From f20a4ea99e79cd0155a56112c272c228dac463f8 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 15:34:13 +0300 Subject: [PATCH 04/15] libdrm: Fix unsigned/signed coparision of -1 value gid_t is unsigned in gnu libc this makes it impossible to check if group id is set to negati

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From 7a737a95e3c9bdfdf18b648678f41911259adceb Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 14:49:38 +0300 Subject: [PATCH 03/15] libdrm: Add function declaration to header for drmSetDebugMsgFunction. --- libdrm/xf86drm.h |1 + 1 files changed, 1 insertions(+), 0 dele

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From 7b9950e3e3e4d9a456addcdbbcdefaf4cc44a5c0 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 14:46:06 +0300 Subject: [PATCH 02/15] libdrm: Add __attribute__ macro to hide gcc specific function attributes for compiler not supporting them. --- libdrm/xf86drm.c |8 +++

Re: libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
>From b7e77b71d1f2d8ff6741e534911e09f10e3f3d4e Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Mon, 20 Jul 2009 14:39:57 +0300 Subject: [PATCH 01/15] libdrm: Add function attribute for debug functions to let gcc check parameter correctness. --- libdrm/xf86drm.c |5 - 1 files changed,

libdrm: Fixing compilers warnings

2009-07-20 Thread Pauli Nieminen
Hi! Here comes set of patches that fix compiler warnings visible with -Wall -Wextra -pedantic. Pauli -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time,