Warning from UDx API compilation implicit-fallthrough
Hi,
c++ UDx API v 12.0.4-14 start throwing warning on implicit-fallthrough.
That should not happen - all Vertica code should be perfect! Suppressing warning from Vertica code would suppress warning from my code as well, and my code is far from being perfect.
Please ask developer to fix, it is very simple 2 line change.
Thank you
Sergey
/home/scherepanov/git/vertica/extern/include/verticaudx/verticaudx120414/VerticaUDx.h: In member function 'Vertica::int32 Vertica::VerticaType::getSize() const':
/home/scherepanov/git/vertica/extern/include/verticaudx/verticaudx120414/VerticaUDx.h:2004:33: warning: this statement may fall through [-Wimplicit-fallthrough=]
2004 | }
| ^
/home/scherepanov/git/vertica/extern/include/verticaudx/verticaudx120414/VerticaUDx.h:2005:11: note: here
2005 | default:
|
Answers
could you please share a sample c++ program?
Hi @Sergey_Cherepan_1 , I will log a JIRA since it's a quick fix. Meanwhile, to fix this immediately, you can edit VerticaUDx.h to add a "return 0;" to close the "case ComplexMapOID:" condition in getSize(), which is shown in the same case condition in getMaxSize function immediately preceding.
No problem in fixing, I am just trying to make Vertica code perfect :-)