Skip to main content
Question

Warning from UDx API compilation implicit-fallthrough

  • October 25, 2023
  • 3 replies
  • 4 views

Sergey_Cherepan_1
Forum|alt.badge.img+2

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:
|

3 replies

SruthiA
Forum|alt.badge.img+1
  • Participating Frequently
  • October 25, 2023

could you please share a sample c++ program?


Bryan_H
Forum|alt.badge.img+2
  • Participating Frequently
  • October 25, 2023

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.


Sergey_Cherepan_1
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • October 25, 2023

No problem in fixing, I am just trying to make Vertica code perfect :-)