Compile error on gnuradio-core/src/lib/viterbi/encode.cc

i have the latest trunk (9699)
g++ is 4.3.1-1ubuntu2
make exits with an error for gnuradio-core/src/lib/viterbi/encode.cc:
g++ -DHAVE_CONFIG_H -I. -I…/…/…/… -Wall -Werror -g -O2 -pthread
-pthread -Wall -Woverloaded-virtual -MT encode.o -MD -MP -MF
.deps/encode.Tpo -c -o encode.o encode.cc
cc1plus: warnings being treated as errors
encode.cc: In function ‘int main()’:
encode.cc:50: error: ignoring return value of ‘size_t fwrite(const
void*, size_t, size_t, FILE*)’, declared with attribute
warn_unused_result

Dimitris S.
“If you think you’re too small to make a difference, try sleeping with
a mosquito!” - Amnesty International

On Thu, Oct 02, 2008 at 11:21:55PM +0200, Dimitris S. wrote:

warn_unused_result

What was your configure command?
Any CFLAGS or CXXFLAGS set in your environment?

We don’t specify -Werror by default.

Eric

the -Werror flag comes from gnuradio-core/src/lib/viterbi/Makefile:
INCLUDES = -Wall -Werror

Dimitris S.
“If you think you’re too small to make a difference, try sleeping with
a mosquito!” - Amnesty International

I have this error on ubuntu 8.10. The -Werror flag is there by default,
I never specified it in configure or somewhere else in the system.

This just happened to change when I upgraded from ubuntu 8.04

-Josh

On Fri, 2008-10-03 at 01:07 +0200, Dimitris S. wrote:

the -Werror flag comes from gnuradio-core/src/lib/viterbi/Makefile:
INCLUDES = -Wall -Werror

I thought we took that out already. Will correct now.

ok, it’s fixed in 9703… thank you jonathan

Dimitris S.
“If you think you’re too small to make a difference, try sleeping with
a mosquito!” - Amnesty International

On Fri, Oct 3, 2008 at 01:09, Johnathan C.