lkml.org 
[lkml]   [2015]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] nios2: Fix unused variable warning
On 2015-09-19 at 06:40:51 +0200, Marek Vasut <marex@denx.de> wrote:
> Fix the following compiler splat by adding __maybe_unused annotation
> to the variable. Using this particular annotation has the least ugly
> impact on the code compared to using ifdeffery.
>
> arch/nios2/kernel/setup.c: In function 'nios2_boot_init':
> arch/nios2/kernel/setup.c:107:7: warning: unused variable 'cmdline_passed' [-Wunused-variable]
> char cmdline_passed[COMMAND_LINE_SIZE] = { 0, };
> ^
>
> Signed-off-by: Marek Vasut <marex@denx.de>

Reviewed-by: Tobias Klauser <tklauser@distanz.ch>


\
 
 \ /
  Last update: 2015-09-22 17:41    [W:0.056 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site