bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] svn 863 make warning/error


From: Juergen Sauermann
Subject: Re: [Bug-apl] svn 863 make warning/error
Date: Sat, 28 Jan 2017 18:35:36 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Hi,

the problem is in ScalarFunction.cc. The compiler complains about a pointer which is not
initialized in the constructor (which is on purpose, but the compiler seems not to like it).

The pointer is initialized at a later point in time (at ScalarFunction.cc:255) but the compiler
seems not to accept that.

Please try SVN 865.

/// Jürgen


On 01/28/2017 05:16 PM, address@hidden wrote:
Hi Jürgen

Sorry, still getting the same 'warning->error' in 864

is the problem in Simple_string.hh or ScalarFunction.cc ??  (i see your code changes in ScalarFunction.cc)

thanks



g++ -DHAVE_CONFIG_H -I. -I..    -Werror -Wall -I sql -I/usr/local/include   -rdynamic -g -O2 -MT apl-Symbol.o -MD -MP -MF .deps/apl-Symbol.Tpo -c -o apl-Symbol.o `test -f 'Symbol.cc' || echo './'`Symbol.cc
cc1plus: warnings being treated as errors
Simple_string.hh: In static member function 'static void ScalarFunction::PF_eval_scalar_B(Thread_context&)':
Simple_string.hh:133: error: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__delta' may be used uninitialized in this function
ScalarFunction.cc:339: note: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__delta' was declared here
Simple_string.hh:133: error: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__pfn' may be used uninitialized in this function
ScalarFunction.cc:339: note: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__pfn' was declared here
Simple_string.hh:133: error: 'j1.PJob_scalar_B::fun' may be used uninitialized in this function
ScalarFunction.cc:339: note: 'j1.PJob_scalar_B::fun' was declared here
make[3]: *** [apl-ScalarFunction.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/apl-StateIndicator.Tpo .deps/apl-StateIndicator.Po
mv -f .deps/apl-Svar_DB.Tpo .deps/apl-Svar_DB.Po
mv -f .deps/apl-Symbol.Tpo .deps/apl-Symbol.Po
make[3]: Leaving directory `/transfer/usr.src/apl/apl-864/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/transfer/usr.src/apl/apl-864/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/transfer/usr.src/apl/apl-864'
make: *** [all] Error 2





On Sat, 28 Jan 2017 15:01:26 +0100
Juergen Sauermann <address@hidden> wrote:

Hi,

thanks, hopefully fixed in SVN 864.

/// Jürgen


On 01/27/2017 11:51 PM, address@hidden wrote:


i removed the -Werror   in the src/Makefile   line 680    common_CXXFLAGS = -Werror -Wall -I sql $(am__append_2) $(am__append_6)   and make gave good apl *so far in my testing)


On Fri, 27 Jan 2017 15:16:14 -0700
address@hidden wrote:


on this computer   I thought svn 863 compiled        but it left 1.6 installed so didn't notice

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wall -I sql -I/usr/local/include -rdynamic -g -O2 -MT libapl_la-ValueHistory.lo -MD -MP -MF .deps/libapl_la-ValueHistory.Tpo -c ValueHistory.cc -o libapl_la-ValueHistory.o >/dev/null 2>&1
cc1plus: warnings being treated as errors
Simple_string.hh: In static member function 'static void ScalarFunction::PF_eval_scalar_B(Thread_context&)':
Simple_string.hh:133: error: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__delta' may be used uninitialized in this function
ScalarFunction.cc:335: note: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__delta' was declared here
Simple_string.hh:133: error: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__pfn' may be used uninitialized in this function
ScalarFunction.cc:335: note: 'j1.PJob_scalar_B::fun1.ErrorCode (Cell::*)(Cell*)const::__pfn' was declared here
Simple_string.hh:133: error: 'j1.PJob_scalar_B::fun' may be used uninitialized in this function
ScalarFunction.cc:335: note: 'j1.PJob_scalar_B::fun' was declared here








reply via email to

[Prev in Thread] Current Thread [Next in Thread]