Skip to content

Maintenance / Minor changes#1031

Merged
agodemar merged 5 commits intoJSBSim-Team:masterfrom
bcoconni:Maintenance
Feb 5, 2024
Merged

Maintenance / Minor changes#1031
agodemar merged 5 commits intoJSBSim-Team:masterfrom
bcoconni:Maintenance

Conversation

@bcoconni
Copy link
Member

@bcoconni bcoconni commented Feb 3, 2024

This PR brings a number of minor changes:

  • Gather some Windows specific code in python/CMakeLists.txt under a single if(WIN32) clause.
  • Avoid duplication of the C++ files under the source folder python (a folder python/src was inadvertently created by CMake with a copy of all the C++ source code).
  • Make the compiler stop complaining about hidden overloaded methods (warnings issued by clang on MacOSX and gcc>=13)
  • Make the compiler stop complaining about missing override keywords (warnings issued by clang on MacOSX).
  • Replace calls to sprintf by calls to snprintf to avoid buffer overflows (even if the risk was actually extremely remote as sprintf was used to print int, unsigned int or double in a buffer of 128 bytes which is unlikely to overflow). This avoids warnings from clang on MacOSX.

@codecov
Copy link

codecov bot commented Feb 3, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (6f0c4d8) 24.87% compared to head (81814ce) 24.87%.

Files Patch % Lines
src/input_output/FGOutputType.cpp 0.00% 2 Missing ⚠️
src/models/FGOutput.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1031   +/-   ##
=======================================
  Coverage   24.87%   24.87%           
=======================================
  Files         168      168           
  Lines       18908    18908           
=======================================
  Hits         4704     4704           
  Misses      14204    14204           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@agodemar agodemar merged commit 853480d into JSBSim-Team:master Feb 5, 2024
@bcoconni bcoconni deleted the Maintenance branch February 5, 2024 17:41
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.

2 participants