Re: [Help-glpk] Variable Assigned to itself
On Fri, 12 Sep 2014, Nigel Galloway wrote: I think you will find that this error is being reported by Codan, a truncation of Code Analysis I presume. This is an Eclipse Tool and not part of the compiler tool chain. I think you'll find a separate output window in Eclipse with the output from the compiler in it. There should be no error as t=t is not illegal in C or C++, and I would expect GLPK to have compiled correctly. t=t is valid C, but that does not make it a good idea. The statement is either as intended or not. The statement is either a nullity or doing something subtle. In any case, the code should be changed. If nothing else, the code should have documentation to inform its next reader. On Wed, Sep 10, 2014, at 04:48 PM, Norman Jessup wrote: I'm trying to compile the glpk source using the Eclipse IDE (I'm not terribly familiar with either). One module, glpini01.c, is generating multiple errors of the form: "Assignment to istelf 't = t' " -- Michael henne...@web.cs.ndsu.nodak.edu "SCSI is NOT magic. There are *fundamental technical reasons* why it is necessary to sacrifice a young goat to your SCSI chain now and then." -- John Woods ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk
Re: [Help-glpk] Variable Assigned to itself
I think you will find that this error is being reported by Codan, a truncation of Code Analysis I presume. This is an Eclipse Tool and not part of the compiler tool chain. I think you'll find a separate output window in Eclipse with the output from the compiler in it. There should be no error as t=t is not illegal in C or C++, and I would expect GLPK to have compiled correctly. -- Nigel Galloway nigel_gallo...@operamail.com On Wed, Sep 10, 2014, at 04:48 PM, Norman Jessup wrote: > Hello, > > I'm trying to compile the glpk source using the Eclipse IDE (I'm not > terribly familiar with either). One module, glpini01.c, is generating > multiple errors of the form: > > "Assignment to istelf 't = t' " > > On looking at the code this does seem to be the case. I'm not sure if > this is allowed by the C++ standard or not, and there is an option I can > set to ignore this "error". However, as the starting value of t is > established just a few lines before the "error" it seems it would be > very straightforward to modify this so that no compiler or pre-compiler > complains. Is there any reason why this can't be done ? I'd be happy > to submit proposed changes, though given these are trivial it may be > easier for the guardians of the code to change themselves rather than > vet my updates. > > Thank you > > -- > Norman Jessup > > +61 2 9876 2703 > +61 4 1768 3515 > > > ___ > Help-glpk mailing list > Help-glpk@gnu.org > https://lists.gnu.org/mailman/listinfo/help-glpk -- http://www.fastmail.fm - Choose from over 50 domains or use your own ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk
Re: [Help-glpk] Variable Assigned to itself
On Thu, 11 Sep 2014, Norman Jessup wrote: I'm trying to compile the glpk source using the Eclipse IDE (I'm not terribly familiar with either). One module, glpini01.c, is generating multiple errors of the form: "Assignment to istelf 't = t' " On looking at the code this does seem to be the case. I'm not sure if this is allowed by the C++ standard or not, and there is an option I can set to ignore this "error". However, as the starting value of t is established just a few lines before the "error" it seems it would be very straightforward to modify this so that no compiler or pre-compiler complains. Is there any reason why this can't be done ? I'd be happy to submit proposed changes, Make sure you understand the error first. Use -save-temps and look at the .ii file. though given these are trivial it may be easier for the guardians of the code to change themselves rather than vet my updates. -- Michael henne...@web.cs.ndsu.nodak.edu "SCSI is NOT magic. There are *fundamental technical reasons* why it is necessary to sacrifice a young goat to your SCSI chain now and then." -- John Woods ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk
[Help-glpk] Variable Assigned to itself
Hello, I'm trying to compile the glpk source using the Eclipse IDE (I'm not terribly familiar with either). One module, glpini01.c, is generating multiple errors of the form: "Assignment to istelf 't = t' " On looking at the code this does seem to be the case. I'm not sure if this is allowed by the C++ standard or not, and there is an option I can set to ignore this "error". However, as the starting value of t is established just a few lines before the "error" it seems it would be very straightforward to modify this so that no compiler or pre-compiler complains. Is there any reason why this can't be done ? I'd be happy to submit proposed changes, though given these are trivial it may be easier for the guardians of the code to change themselves rather than vet my updates. Thank you -- Norman Jessup +61 2 9876 2703 +61 4 1768 3515 ___ Help-glpk mailing list Help-glpk@gnu.org https://lists.gnu.org/mailman/listinfo/help-glpk