bugGNU GRUB - Bugs: bug #31725, grub_cmd_regexp: error: unused...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #31725: grub_cmd_regexp: error: unused variable argn

Submitted by:  Micah Anderson <micahanderson>
Submitted on:  Sun 21 Nov 2010 11:09:29 PM UTC  
 
Category: CompilationSeverity: Major
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: None
Planned Release: None

Fri 03 Dec 2010 05:10:59 AM UTC, comment #1:

This is fixed in mainline by Szymon Janc in r2970.

BVK Chaitanya <bvk>
Project Member
Sun 21 Nov 2010 11:09:29 PM UTC, original submission:

During compilation of trunk, I got this:

gcc-4.4 -DHAVE_CONFIG_H -I. -I../../../grub-core -I.. -Wall -W -I../../../include -I../include -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.4.5/include -DGRUB_FILE=\"bus/pci.c\" -I. -I../../../grub-core -I.. -I../../.. -I../../../include -I../include -Os -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -DUSE_ASCII_FAILBACK=1 -DHAVE_UNIFONT_WIDTHSPEC=1 -mrtd -mregparm=3 -ffreestanding -g -Wall -O2 -c -o bus/pci_module-pci.o `test -f 'bus/pci.c' || echo '../../../grub-core/'`bus/pci.c
gcc-4.4 -Os -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -DUSE_ASCII_FAILBACK=1 -DHAVE_UNIFONT_WIDTHSPEC=1 -mrtd -mregparm=3 -ffreestanding -g -Wall -O2 -m32 -Wl,--build-id=none -nostdlib -Wl,-N,-r,-d -o pci.module bus/pci_module-pci.o
gcc-4.4 -DHAVE_CONFIG_H -I. -I../../../grub-core -I.. -Wall -W -I../../../include -I../include -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.4.5/include -DGRUB_FILE=\"commands/i386/cmostest.c\" -I. -I../../../grub-core -I.. -I../../.. -I../../../include -I../include -Os -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -DUSE_ASCII_FAILBACK=1 -DHAVE_UNIFONT_WIDTHSPEC=1 -mrtd -mregparm=3 -ffreestanding -g -Wall -O2 -c -o commands/i386/cmostest_module-cmostest.o `test -f 'commands/i386/cmostest.c' || echo '../../../grub-core/'`commands/i386/cmostest.c
gcc-4.4 -Os -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -DUSE_ASCII_FAILBACK=1 -DHAVE_UNIFONT_WIDTHSPEC=1 -mrtd -mregparm=3 -ffreestanding -g -Wall -O2 -m32 -Wl,--build-id=none -nostdlib -Wl,-N,-r,-d -o cmostest.module commands/i386/cmostest_module-cmostest.o
gcc-4.4 -DHAVE_CONFIG_H -I. -I../../../grub-core -I.. -Wall -W -I../../../include -I../include -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.4.5/include -DGRUB_FILE=\"commands/iorw.c\" -I. -I../../../grub-core -I.. -I../../.. -I../../../include -I../include -Os -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -DUSE_ASCII_FAILBACK=1 -DHAVE_UNIFONT_WIDTHSPEC=1 -mrtd -mregparm=3 -ffreestanding -g -Wall -O2 -c -o commands/iorw_module-iorw.o `test -f 'commands/iorw.c' || echo '../../../grub-core/'`commands/iorw.c
gcc-4.4 -Os -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -DUSE_ASCII_FAILBACK=1 -DHAVE_UNIFONT_WIDTHSPEC=1 -mrtd -mregparm=3 -ffreestanding -g -Wall -O2 -m32 -Wl,--build-id=none -nostdlib -Wl,-N,-r,-d -o iorw.module commands/iorw_module-iorw.o
gcc-4.4 -DHAVE_CONFIG_H -I. -I../../../grub-core -I.. -Wall -W -I../../../include -I../include -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.4.5/include -DGRUB_FILE=\"commands/regexp.c\" -I. -I../../../grub-core -I.. -I../../.. -I../../../include -I../include -I../../../grub-core/lib/posix_wrap -I../grub-core/gnulib -I../../../grub-core/gnulib -Os -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -DUSE_ASCII_FAILBACK=1 -DHAVE_UNIFONT_WIDTHSPEC=1 -mrtd -mregparm=3 -ffreestanding -fno-builtin -Wno-undef -Wno-sign-compare -Wno-unused -Wno-unused-parameter -g -Wall -O2 -c -o commands/regexp_module-regexp.o `test -f 'commands/regexp.c' || echo '../../../grub-core/'`commands/regexp.c
cc1: warnings being treated as errors
../../../grub-core/commands/regexp.c: In function ‘grub_cmd_regexp’:
../../../grub-core/commands/regexp.c:90: error: unused variable ‘argn’
make[5]: *** [commands/regexp_module-regexp.o] Error 1
make[5]: Leaving directory `/root/grub/grub/build/grub-common/grub-core'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/root/grub/grub/build/grub-common/grub-core'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/grub/grub/build/grub-common'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/grub/grub/build/grub-common'
dh_auto_build: make -j1 returned exit code 2
make[1]: *** [build/stamps/build-grub-common] Error 2
make[1]: Leaving directory `/root/grub/grub'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Micah Anderson <micahanderson>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bvk (Posted a comment)
  • -unavailable- added by micahanderson (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 03 Dec 2010 05:10:59 AM UTCbvkStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1