bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] errors building gnu-apl 1.7


From: Jeff Derby
Subject: [Bug-apl] errors building gnu-apl 1.7
Date: Wed, 24 Apr 2019 11:01:48 -0400

this was on a Mac running macOS 10.14.4 using Apple's command line tools:
-----------------
l-Svar_record.o `test -f 'Svar_record.cc' || echo './'`Svar_record.cc
ScalarFunction.cc:97:14: error: binding dereferenced null pointer to reference has undefined behavior [-Werror,-Wnull-dereference]
   : value_Z(*(Value *)0),
             ^~~~~~~~~~~
ScalarFunction.cc:159:14: error: binding dereferenced null pointer to reference has undefined behavior [-Werror,-Wnull-dereference]
   : value_Z(*(Value *)0),
             ^~~~~~~~~~~
2 errors generated.
make[3]: *** [apl-ScalarFunction.o] Error 1
make[3]: *** Waiting for unfinished jobs....
Svar_DB.cc:302:30: error: use of logical '||' with constant operand [-Werror,-Wconstant-logical-operand]
ostream * log = (LOG_startup || LOG_Svar_DB_signals) ? & cerr : 0;
                             ^  ~~~~~~~~~~~~~~~~~~~
Svar_DB.cc:302:30: note: use '|' for a bitwise operation
ostream * log = (LOG_startup || LOG_Svar_DB_signals) ? & cerr : 0;
                             ^~
                             |
1 error generated.
make[3]: *** [apl-Svar_DB.o] Error 1
mv -f .deps/apl-StateIndicator.Tpo .deps/apl-StateIndicator.Po
mv -f .deps/apl-Svar_record.Tpo .deps/apl-Svar_record.Po
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
---------------

should i just turn off treating warnings as errors?

thanks

Jeff H. Derby
IBM Corporation
RTP, NC  USA
Cell: (919) 672-0962
Internet:  address@hidden


reply via email to

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