[vtk-developers] void const TestVoidConstReturn() warning

Bill Lorensen bill.lorensen at gmail.com
Wed Dec 28 12:55:59 EST 2011


remove the const

On Wed, Dec 28, 2011 at 12:21 PM, David Doria <daviddoria at gmail.com> wrote:
> I missed some warnings on a recent patch because I turned off -Werror
> because line 612 in TestCxxFeatures.cxx warns:
>
> // gcc>=4.3 says type qualifiers ignored on function return type
> #if !defined(__HP_aCC)
> void const TestVoidConstReturn() {}
> #endif
>
> I am indeed using gcc >= 4.3 and I get (as it says in the comment) a warning
> about the type qualifier being ignored. Is there anything that can be done
> to suppress this warning on gcc >= 4.3?
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtk-developers mailing list