Menu

#24 deprecated conversion from string constant to char*

fixed
seebk
2015-04-19
2015-04-13
rconstruct
No

I have a build warning with gcc 4.8.2.

lensfun-code/tests/test_modifier.cpp:46:147: warning: deprecated conversion from string constant to ‘char[-Wwrite-strings]
char
geom_names [] = {"rectilinear", "panoramic", "equirect", "fisheye", "fisheye-equisolid", "fisheye-orthographic", "fisheye-thoby", NULL};

lensfun-code/tests/test_modifier.cpp:46:147: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

Shouldn't string literals be an array of N const char* ?

Find attached a patch, it fixes this and deprecated doxyfile tags.

1 Attachments

Discussion

  • seebk

    seebk - 2015-04-19

    Thanks, I have applied your patch.

     
  • seebk

    seebk - 2015-04-19
    • status: open --> fixed
    • assigned_to: seebk