]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nios2: Fix unused variable warning
authorMarek Vasut <marex@denx.de>
Wed, 30 Sep 2015 14:06:46 +0000 (22:06 +0800)
committerLey Foon Tan <lftan@altera.com>
Wed, 30 Sep 2015 18:21:10 +0000 (02:21 +0800)
commit4ac219236339992a8944dc424cb87d7194072e09
treef412c1154dc56b8d72edcd33bdea62f177e1d3ee
parent9ffecb10283508260936b96022d4ee43a7798b4c
nios2: Fix unused variable warning

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>
Acked-by: Ley Foon Tan <lftan@altera.com>
arch/nios2/kernel/setup.c