Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Feb 6, 2023

Conversation

dmipx
Copy link
Contributor

@dmipx dmipx commented Feb 5, 2023

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
Copy link
Collaborator

Nir-Az commented Feb 5, 2023

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
Copy link
Collaborator

Nir-Az commented Feb 5, 2023

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

@@ -4034,7 +4034,7 @@ static int tkinter2Present(void)
{
static int lTkinter2Present = -1 ;
char lPythonCommand[256];
char lPythonParams[256] =
char lPythonParams[224] =
Copy link
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
Contributor 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)

Copy link
Contributor

@remibettan remibettan left a comment

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
Copy link
Collaborator

@Nir-Az Nir-Az left a comment

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

3 participants