lkml.org 
[lkml]   [2008]   [Nov]   [20]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromDavid Howells <>
SubjectRe: [PATCH] CRED: fix compilation warning in function 'get_cred'
DateThu, 20 Nov 2008 22:19:31 +0000
Hannes Eder <hannes@hanneseder.net> wrote:

> Fix to following warning by introducing a temporary variable:
> 
> include/linux/cred.h: In function 'get_cred':
> include/linux/cred.h:187: warning: passing argument 1 of
> 'get_new_cred' discards qualifiers from pointer target type

Interesting.  I believe that's a compiler bug.  Explicitly casting away the
const should avoid this warning.

David


\
 
 \ /
  Last update: 2008-11-20 23:23    [from the cache]
©2003-2008