Re: vdr-1.4.0-2, g++ 4.1.1 compiler warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ville Skytt? wrote:
> Hi Klaus,
> 
> I noticed this compiler warning while building vdr-1.4.0-2 with g++
> 4.1.1:
> 
> thread.c: In member function 'bool cThread::Start()':
> thread.c:258: warning: null argument where non-null required (argument 3)
> 
> My manual page for pthread_setschedparam() says:
> 
> For SCHED_FIFO and SCHED_RR, the only required member of the sched_param
> structure is the priority sched_priority.

Hello Ville,

I'm making this a ML posting to allow others to comment on this, too.
Hope that's ok with you.


Well, looking at <pthread.h> it does look like there actually
should be a pointer to a 'struct sched_param'.

But then again it says:

   The realtime scheduling policies SCHED_RR and SCHED_FIFO are available
   only to processes with superuser privileges.

which VDR usually isn't.

Since I assume that the line in question doesn't have any effect
if a NULL pointer is given as 'param', maybe it's safe to drop it
altogether?


Klaus


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux