Skip to content

update third-party:tinyfiledialogs version to 3.9.0: cleanup format-overflow warning - #11396

Merged
Nir-Az merged 2 commits into
realsenseai:developmentfrom
dmipx:tinyfiledialogs-warning
Feb 6, 2023
Merged

update third-party:tinyfiledialogs version to 3.9.0: cleanup format-overflow warning#11396
Nir-Az merged 2 commits into
realsenseai:developmentfrom
dmipx:tinyfiledialogs-warning

Conversation

@dmipx

@dmipx dmipx commented Feb 5, 2023

Copy link
Copy Markdown

Signed-off-by: Dmitry Perchanov dmitry.perchanov@intel.com

Signed-off-by: Dmitry Perchanov <dmitry.perchanov@intel.com>
@dmipx
dmipx requested a review from Nir-Az February 5, 2023 12:29
@Nir-Az

Nir-Az commented Feb 5, 2023

Copy link
Copy Markdown
Collaborator

Lets first see if we can update the third party to fix it.
If not - mac build failed on

Users/runner/work/librealsense/librealsense/third-party/tinyfiledialogs/tinyfiledialogs.c:4046:21: note: include the header <stdio.h> or explicitly provide a declaration for 'snprintf'
1 warning and 1 error generated.

@Nir-Az

Nir-Az commented Feb 5, 2023

Copy link
Copy Markdown
Collaborator

https://sourceforge.net/projects/tinyfiledialogs/
Version 3.9.0 is out,
Maybe they fixed those warnings.
Just need to see it works for Windows & Linux..

@Nir-Az
Nir-Az requested a review from remibettan February 5, 2023 18:49
static int lTkinter2Present = -1 ;
char lPythonCommand[256];
char lPythonParams[256] =
char lPythonParams[224] =

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 224 is better than 256?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lPythonParams copied to lPythonCommand.
lPythonParams is constant strings that never reach more than 218 characters (line 4080)

@remibettan remibettan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one minor comment

Signed-off-by: Dmitry Perchanov <dmitry.perchanov@intel.com>
@Nir-Az Nir-Az changed the title third-party:tinyfiledialogs: cleanup format-overflow warning update third-party:tinyfiledialogs versionto c3.9.0: : cleanup format-overflow warning Feb 6, 2023
@Nir-Az Nir-Az changed the title update third-party:tinyfiledialogs versionto c3.9.0: : cleanup format-overflow warning update third-party:tinyfiledialogs version to 3.9.0: cleanup format-overflow warning Feb 6, 2023

@Nir-Az Nir-Az left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Nir-Az
Nir-Az merged commit 77908f2 into realsenseai:development Feb 6, 2023
@dmipx
dmipx deleted the tinyfiledialogs-warning branch February 26, 2023 07:59
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.

4 participants