[Gptfdisk-general] gdisk in gcc 4.6
Brought to you by:
srs5694
|
From: KESHAV P.R. <sko...@gm...> - 2011-03-27 16:49:05
|
Hi,
There seems to be small warnings with gptfdisk compilation (from
git - 0.7.1 tag) with gcc 4.6 in Archlinux x86_64. Below is the output
rm -f core *.o *~ gdisk sgdisk fixparts
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o crc32.o crc32.cc
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o support.o support.cc
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o guid.o guid.cc
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o gptpart.o gptpart.cc
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o mbrpart.o mbrpart.cc
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o basicmbr.o basicmbr.cc
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o mbr.o mbr.cc
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o gpt.o gpt.cc
gpt.cc: In member function ‘int GPTData::CheckHeaderCRC(GPTHeader*)’:
gpt.cc:403:29: warning: variable ‘hSize’ set but not used
[-Wunused-but-set-variable]
gpt.cc: In member function ‘int GPTData::SaveGPTData(int)’:
gpt.cc:930:19: warning: variable ‘littleEndian’ set but not used
[-Wunused-but-set-variable]
gpt.cc: In member function ‘int GPTData::LoadGPTBackup(const string&)’:
gpt.cc:1134:13: warning: variable ‘sizeOfEntries’ set but not used
[-Wunused-but-set-variable]
gpt.cc:1135:8: warning: variable ‘littleEndian’ set but not used
[-Wunused-but-set-variable]
gpt.cc: In member function ‘int GPTData::Align(uint64_t*)’:
gpt.cc:1854:41: warning: variable ‘original’ set but not used
[-Wunused-but-set-variable]
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o bsd.o bsd.cc
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o parttypes.o parttypes.cc
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o attributes.o attributes.cc
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o diskio.o diskio.cc
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o diskio-unix.o diskio-unix.cc
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o gdisk.o gdisk.cc
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o gpttext.o gpttext.cc
g++ crc32.o support.o guid.o gptpart.o mbrpart.o basicmbr.o mbr.o
gpt.o bsd.o parttypes.o attributes.o diskio.o diskio-unix.o gdisk.o
gpttext.o -Wl,--hash-style=gnu -Wl,--as-needed -licuio -luuid -o
gdisk
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o sgdisk.o sgdisk.cc
g++ crc32.o support.o guid.o gptpart.o mbrpart.o basicmbr.o mbr.o
gpt.o bsd.o parttypes.o attributes.o diskio.o diskio-unix.o sgdisk.o
-Wl,--hash-style=gnu -Wl,--as-needed -licuio -luuid -lpopt -o sgdisk
g++ -march=x86-64 -mtune=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64
-c -o fixparts.o fixparts.cc
g++ support.o diskio.o diskio-unix.o basicmbr.o mbrpart.o fixparts.o
-Wl,--hash-style=gnu -Wl,--as-needed -o fixparts
GCC version
keshav_pr@keshav-laptop% x86_64-unknown-linux-gnu-g++ -v
Using built-in specs.
COLLECT_GCC=x86_64-unknown-linux-gnu-g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/src/gcc-4.6.0/configure --prefix=/usr
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++
--enable-shared --enable-threads=posix --with-system-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions
--enable-clocale=gnu --enable-gnu-unique-object
--enable-linker-build-id --with-ppl --enable-cloog-backend=isl
--enable-lto --enable-gold --enable-ld=default --enable-plugin
--with-plugin-ld=ld.gold --enable-multilib --disable-libstdcxx-pch
--enable-checking=release
Thread model: posix
gcc version 4.6.0 (GCC)
I will try compiling the same in mingw-w64 gcc 4.6 for Windows 7 x64
and come back to you. Thanks in advance.
Regards.
Keshav
|