Re: Regarding GCC 4.9.2 backward compatibility with 3.2.1

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

 



Thanks for your response.

Regards,
Pialy

On Fri, Aug 25, 2017 at 9:27 AM, Martin Sebor <msebor@xxxxxxxxx> wrote:
> On 08/24/2017 03:46 AM, Pialy Ghosh wrote:
>>
>> Hi All,
>>
>> Thanks for your response.
>> The code snippet is like below
>> (void *)ShMem = shmat(ShId, 0, 0);
>>
>> Error in this line: lvalue required as left operand of assignment.
>>
>>
>> From GCC 3.4 lvalue casting is removed.
>> Is there any way to solve this error without changing the code? If we
>> can use compiler 4.9.2 without any code modification.
>> Enabling this support by adding any flag, if any?
>
>
> I don't think there is a way.  At my last job years ago we migrated
> a large code base from an ancient GCC (I think 3.4.5) to a more recent
> version and this was among the errors that led to many changes.  But
> in the long run, investing in modernizing a code base pays off.
>
> Martin
>



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux