Skip to content

Conversation

@RZetko
Copy link

@RZetko RZetko commented Nov 15, 2024

Added missing bracket for if clause which caused compilation errors like so:

deepstream_parallel_infer_app.cpp:1690:3: error: jump to label 'done'
 1690 |   done:
      |   ^~~~
deepstream_parallel_infer_app.cpp:1539:10: note:   from here
 1539 |     goto done;
      |          ^~~~
deepstream_parallel_infer_app.cpp:1613:18: note:   crosses initialization of 'DemoPerfCtx* perf_ctx'
 1613 |     DemoPerfCtx *perf_ctx = (DemoPerfCtx *)g_malloc0(sizeof(DemoPerfCtx));
      |                  ^~~~~~~~
deepstream_parallel_infer_app.cpp:1612:27: note:   crosses initialization of 'NvDsAppPerfStructInt* str'
 1612 |     NvDsAppPerfStructInt *str = (NvDsAppPerfStructInt *)g_malloc0(sizeof(NvDsAppPerfStructInt));
      |                           ^~~
deepstream_parallel_infer_app.cpp:1729:25: error: expected '}' at end of input
 1729 |     return return_value;
      |                         ^
deepstream_parallel_infer_app.cpp:1575:3: note: to match this '{'
 1575 |   {
      |   ^
deepstream_parallel_infer_app.cpp:1729:25: error: expected '}' at end of input
 1729 |     return return_value;
      |                         ^
deepstream_parallel_infer_app.cpp:1406:1: note: to match this '{'
 1406 | {

Added missing bracket for if clause which caused compilation errors like so:

deepstream_parallel_infer_app.cpp:1690:3: error: jump to label 'done'
 1690 |   done:
      |   ^~~~
deepstream_parallel_infer_app.cpp:1539:10: note:   from here
 1539 |     goto done;
      |          ^~~~
deepstream_parallel_infer_app.cpp:1613:18: note:   crosses initialization of 'DemoPerfCtx* perf_ctx'
 1613 |     DemoPerfCtx *perf_ctx = (DemoPerfCtx *)g_malloc0(sizeof(DemoPerfCtx));
      |                  ^~~~~~~~
deepstream_parallel_infer_app.cpp:1612:27: note:   crosses initialization of 'NvDsAppPerfStructInt* str'
 1612 |     NvDsAppPerfStructInt *str = (NvDsAppPerfStructInt *)g_malloc0(sizeof(NvDsAppPerfStructInt));
      |                           ^~~
deepstream_parallel_infer_app.cpp:1729:25: error: expected '}' at end of input
 1729 |     return return_value;
      |                         ^
deepstream_parallel_infer_app.cpp:1575:3: note: to match this '{'
 1575 |   {
      |   ^
deepstream_parallel_infer_app.cpp:1729:25: error: expected '}' at end of input
 1729 |     return return_value;
      |                         ^
deepstream_parallel_infer_app.cpp:1406:1: note: to match this '{'
 1406 | {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant