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

Use strncpy and disable MSVC unsafe warnings #7171

Merged
merged 3 commits into from
Sep 10, 2019

Conversation

jonpas
Copy link
Member

@jonpas jonpas commented Sep 6, 2019

When merged this pull request will:

  • Use strncpy instead of strncpy_s everywhere.
  • Disable MSVC unsafe warning
  • Set 64-bit flag correctly in CMake from generator name.
  • Disable /arch:SSE2 flag on 64-bit builds - flag only exists in x86 MSVC, it is enabled in x64 by default.
  • Fix indentation (mixed tabs and spaces) in root `CMakeLists.txt˙.

Merge into medicalExtensionWork.

@jonpas jonpas added kind/enhancement Release Notes: **IMPROVED:** kind/cleanup Release Notes: **CHANGED:** labels Sep 6, 2019
@jonpas jonpas added this to the 3.13.0 milestone Sep 6, 2019
@jonpas jonpas requested a review from PabstMirror September 6, 2019 15:55
@jonpas jonpas changed the base branch from master to medicalExtensionWork September 6, 2019 15:55

set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} /D _DEBUG /MTd /Zi /Ob0 /Od /RTC1")
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS} /MT /O1 /Ob1 /D NDEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} /MT /O2 /Ob2 /D NDEBUG")
Copy link
Contributor

Choose a reason for hiding this comment

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

Might aswell set /Ox for release?

Copy link
Member Author

Choose a reason for hiding this comment

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

We always build RelWithDebInfo for releases.

Anyways, that's for separate PR should we do it.

@jonpas jonpas merged commit a553969 into medicalExtensionWork Sep 10, 2019
@jonpas jonpas deleted the msvc-no-unsafe branch September 10, 2019 13:48
jonpas pushed a commit that referenced this pull request Sep 28, 2019
* Fix Medical HandleDamageWounds memory leak (#6809)

* Use strncpy and disable MSVC unsafe warnings (#7171)
* Set 64-bit correctly from generator string, Disable SSE2 flag on 64-bit (non-existent)

* Tweaks for Linux extensions (#5762)
* Tweak CMakeLists for Linux compilation
* Conform SQF extensions check for Linux server extensions support
* Add *.so to tools
* Split extension check into Windows and Linux
* Disable Medical extension loading for now
* Add client/server separation to extension loading
* Add Arma config documentation on extension creation
@PabstMirror PabstMirror modified the milestones: 3.13.0, 3.13.0-temp1 Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Release Notes: **CHANGED:** kind/enhancement Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants