Fix accidentally cast away qualifiers - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Fix accidentally cast away qualifiers
Date
Msg-id b04f4d3a-5e70-4e73-9ef2-87f777ca4aac@eisentraut.org
Whole thread Raw
Responses Re: Fix accidentally cast away qualifiers
Re: Fix accidentally cast away qualifiers
List pgsql-hackers
This patch fixes cases where a qualifier (const, in all cases here) was 
dropped by a cast, but the cast was otherwise necessary or desirable, so 
the straightforward fix is to add the qualifier into the cast.

This was checked with gcc -Wcast-qual, but it doesn't fix all such 
warnings, only the trivially fixable ones.
Attachment

pgsql-hackers by date:

Previous
From: John Naylor
Date:
Subject: Re: Undefined behavior detected by new clang's ubsan
Next
From: Chao Li
Date:
Subject: Re: Fix accidentally cast away qualifiers