On Wednesday 26 September 2001 19:52, [EMAIL PROTECTED] wrote:
> CVSROOT: /usr/local/lyx/cvsroot
> Module name: lyx-devel
> Repository: lyx-devel/src/mathed/
> Changes by: [EMAIL PROTECTED] 01/09/26 18:52:35
>
> Modified files:
> lyx-devel/src/mathed/: formula.C formulabase.C math_arrayinset.C
> math_cursor.C math_cursor.h
> math_gridinset.C math_gridinset.h
> math_inset.C math_inset.h math_macro.C
> math_macro.h math_matrixinset.C
> math_matrixinset.h math_nestinset.C
> math_nestinset.h math_parser.C
>
> Log message:
> Even more ugly changes and a new file dependency to shut up Jean-Marc's
> compiler *sigh*
Well, you may remove warnings, but you end up with errors!
Angus
cxx -std strict_ansi -nocleanup -DHAVE_CONFIG_H -I. -I. -I../../src -I./../
-I../.. -I../.. -I../../boost -I../../src/cheaders -I/usr/local/include
-msg_display_number -msg_disable 11,193,236,261,401,611 -w0 -ptr
/usr/users/aleem/OTHERS_CODE/lyx/devel/lyx_cxx_repository -O2 -MD -c
math_cursor.C
cxx: Error: math_cursor.C, line 79: #312 no suitable user-defined conversion
from "std::vector<MathInset::idx_type,
std::allocator<MathInset::idx_type>>" to
"std::vector<unsigned int, std::allocator<unsigned int>>" exists
std::vector<unsigned int> indices =
i1.par_->idxBetween(i1.idx_, i2.idx_);
------------------------------------------------------------^
cxx: Info: math_cursor.C, line 374: #1136-D conversion to integral type of
smaller size could lose data
int c = ar.x2pos(x1);
---------------------------------^
cxx: Info: math_cursor.C, line 655: #1136-D conversion to integral type of
smaller size could lose data
for (int i = pos() - 1; i >= 0; --i) {
---------------------^
cxx: Error: math_cursor.C, line 756: #312 no suitable user-defined conversion
from "std::vector<MathInset::idx_type,
std::allocator<MathInset::idx_type>>" to
"std::vector<unsigned int, std::allocator<unsigned int>>" exists
std::vector<unsigned int> indices =
i1.par_->idxBetween(i1.idx_, i2.idx_);
----------------------------------------------------^
cxx: Info: math_cursor.C, line 785: #1136-D conversion to integral type of
smaller size could lose data
for (unsigned int pos = i1.pos_; pos != i2.pos_;
++pos) {
------------------------------------------------^
cxx: Error: math_cursor.C, line 836: #493 no instance of overloaded
function "MathCursor::idx" matches the specified type
unsigned int MathCursor::idx() const
-------------------------^
cxx: Info: math_cursor.C, line 838: #1136-D conversion to integral type of
smaller size could lose data
return cursor().idx_;
---------------^
cxx: Error: math_cursor.C, line 842: #493 no instance of overloaded
function "MathCursor::idx" matches the specified type
unsigned int & MathCursor::idx()
---------------------------^
cxx: Error: math_cursor.C, line 844: #434 a reference of type "unsigned int &"
(not const-qualified) cannot be initialized with a value of type
"MathInset::idx_type"
return cursor().idx_;
---------------^
cxx: Error: math_cursor.C, line 848: #493 no instance of overloaded
function "MathCursor::pos" matches the specified type
unsigned int MathCursor::pos() const
-------------------------^
cxx: Info: math_cursor.C, line 850: #1136-D conversion to integral type of
smaller size could lose data
return cursor().pos_;
---------------^
cxx: Error: math_cursor.C, line 854: #493 no instance of overloaded
function "MathCursor::pos" matches the specified type
unsigned int & MathCursor::pos()
---------------------------^
cxx: Error: math_cursor.C, line 856: #434 a reference of type "unsigned int &"
(not const-qualified) cannot be initialized with a value of type
"MathInset::pos_type"
return cursor().pos_;
---------------^
cxx: Error: math_cursor.C, line 872: #147 declaration is incompatible
with "MathArrayInset
*MathCursor::enclosingArray(MathCursor::idx_type &) const" (declared
at line 135 of "math_cursor.h")
MathArrayInset * MathCursor::enclosingArray(unsigned int & idx) const
-----------------------------^
cxx: Info: math_cursor.C, line 874: #1136-D conversion to integral type of
smaller size could lose data
for (int i = Cursor_.size() - 1; i >= 0; --i) {
---------------------^
cxx: Info: math_cursor.C, line 876: #1136-D conversion to integral type of
smaller size could lose data
idx = Cursor_[i].idx_;
----------------------------^
cxx: Error: math_cursor.C, line 927: #147 declaration is incompatible
with "MathCursor::size_type MathCursor::size() const" (declared at
line 143 of "math_cursor.h")
unsigned int MathCursor::size() const
-------------------------^
cxx: Info: math_cursor.C, line 929: #1136-D conversion to integral type of
smaller size could lose data
return array().size();
---------------^
cxx: Error: math_cursor.C, line 933: #147 declaration is incompatible
with "MathCursor::col_type MathCursor::col() const" (declared at
line 198 of "math_cursor.h")
unsigned int MathCursor::col() const
-------------------------^
cxx: Info: math_cursor.C, line 935: #1136-D conversion to integral type of
smaller size could lose data
return par()->col(idx());
---------------^
cxx: Error: math_cursor.C, line 939: #147 declaration is incompatible
with "MathCursor::row_type MathCursor::row() const" (declared at
line 200 of "math_cursor.h")
unsigned int MathCursor::row() const
-------------------------^
cxx: Info: math_cursor.C, line 941: #1136-D conversion to integral type of
smaller size could lose data
return par()->row(idx());
---------------^
cxx: Info: math_cursor.C, line 1070: #1136-D conversion to integral type of
smaller size could lose data
const unsigned int r = row();
---------------------------------------^
cxx: Info: math_cursor.C, line 1071: #1136-D conversion to integral type of
smaller size could lose data
for (unsigned int c = col() + 1; c < p->ncols(); ++c) {
--------------------------------------^
cxx: Info: math_cursor.C, line 1072: #1136-D conversion to integral type of
smaller size could lose data
const unsigned int i1 = p->index(r, c);
------------------------------------------------^
cxx: Info: math_cursor.C, line 1073: #1136-D conversion to integral type of
smaller size could lose data
const unsigned int i2 = p->index(r + 1, c);
------------------------------------------------^
cxx: Error: math_cursor.C, line 1088: #434 a reference of type
"MathCursor::idx_type &" (not const-qualified) cannot be initialized
with a value of type "unsigned int"
MathArrayInset * p = enclosingArray(idx);
--------------------------------------------^
cxx: Info: math_cursor.C, line 1089: #1136-D conversion to integral type of
smaller size could lose data
return p ? p->valign() : 0;
---------------^
cxx: Error: math_cursor.C, line 1096: #434 a reference of type
"MathCursor::idx_type &" (not const-qualified) cannot be initialized
with a value of type "unsigned int"
MathArrayInset * p = enclosingArray(idx);
--------------------------------------------^
cxx: Info: math_cursor.C, line 1097: #1136-D conversion to integral type of
smaller size could lose data
return p ? p->halign(idx % p->ncols()) : 0;
---------------^
cxx: Error: math_cursor.C, line 1126: #147 declaration is
incompatible with
"MathCursor::idx_type MathCursor::cellXOffset() const" (declared at
line 280 of "math_cursor.h")
unsigned int MathCursor::cellXOffset() const
-------------------------^
cxx: Error: math_cursor.C, line 1132: #147 declaration is
incompatible with
"MathCursor::idx_type MathCursor::cellYOffset() const" (declared at
line 282 of "math_cursor.h")
unsigned int MathCursor::cellYOffset() const
-------------------------^
cxx: Info: math_cursor.C, line 1140: #1136-D conversion to integral type of
smaller size could lose data
return cellXOffset() + xarray().pos2x(pos());
---------------^
cxx: Info: math_cursor.C, line 1146: #1136-D conversion to integral type of
smaller size could lose data
return cellYOffset();
---------------^
cxx: Info: math_cursor.C, line 1153: #1136-D conversion to integral type of
smaller size could lose data
pos() = xarray().x2pos(x - cellXOffset());
-------------------------------^
cxx: Error: math_cursor.C, line 1428: #493 no instance of overloaded
function "MathCursorPos::cell" matches the specified type
MathArray & MathCursorPos::cell(unsigned int idx) const
---------------------------^
cxx: Error: math_cursor.C, line 1440: #493 no instance of overloaded
function "MathCursorPos::xcell" matches the specified type
MathXArray & MathCursorPos::xcell(unsigned int idx) const
----------------------------^
cxx: Info: 18 errors detected in the compilation of "math_cursor.C".
make[2]: *** [math_cursor.lo] Error 1
make[2]: Leaving directory `/usr/users/aleem/OTHERS_CODE/lyx/devel/src/mathed'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/users/aleem/OTHERS_CODE/lyx/devel/src'
make: *** [all-recursive-am] Error 2