Commit Graph

20 Commits

Author SHA1 Message Date
Markus Reitböck
496b31b087 do not use precompiled header for setting global compiler definitions and to disable compiler warnings
only 4 of these warnings are still relevant, CMake shall be used to disable them

Compiler definitions:

  NOMINMAX:
    * is already globally defined in SetGlobalCompilerAndLinkerSettings.cmake

  WIN32_LEAN_AND_MEAN:
    * use CMake target_compile_options on relevant targets

Warnings that still occur:

  C4251, C4273, C4275: all related to dllimport / export
    * use CMake target_compile_options on relevant targets

  C4661: no suitable definition provied for explicit template instantiation request
    * triggered in Mesh because of Vector3D in Base - not all functions are defined in header
    * use CMake target_compile_options on relevant targets

Warnings that are Currently not triggered (fix code if they appear again):

  C4005: macro redefinition

  C4244: argument conversion, possible loss of data

  C4267: conversion from size_t to type, possible loss of data

  C4305: truncation from type1 to type2
    * only occurrence disabled in Reader.cpp

  C4522: multiple assignment operator specified

  C5208: unnamed class in typedef name

Obsolete Compiler warnings:

  C4181: not mentioned in Microsoft docs anymore

  C4290: C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
    * throw(optional_type_list)  deprecated in C++17

  C4482: nonstandard extension used: enum 'enumeration' used in qualified name
    * not generated for compilers that support C++11

  C4503: 'identifier': decorated name length exceeded, name was truncated
    * obsolete since Visual Studio 2017

  C4786: not mentioned in Microsoft docs anymore
2025-09-11 20:21:04 -05:00
Benjamin Nauck
1301b58296 MeshPart: Use std::numeric_limits and std::numbers instead of defines 2025-03-29 13:32:38 +01:00
pre-commit-ci[bot]
e92ed45df9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
wmayer
01af14829a MeshPart: apply clang format 2023-09-02 11:30:04 +02:00
wmayer
1e8fb26dac MeshPart: include boost python headers only where required 2022-12-19 21:49:42 +01:00
Uwe
462b9616b6 [MeshPart] improve PreCompiled.h handling 2022-12-07 23:35:52 +01:00
Uwe
2669383c2a [MeshPart] remove unused includes
- also some sorting
2022-11-23 03:35:31 +01:00
luz paz
be783892bb MeshPart: remove trailing whitespace 2022-11-15 12:45:52 +01:00
wmayer
1f170e3d23 Mod: handle removed headers in PCH files for OCC 7.6 2022-05-21 06:28:07 +02:00
wmayer
bb8dda44f5 Mesh: include header with export macros 2022-03-24 20:42:15 +01:00
wmayer
d21a60b294 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
Uwe
47650ab2c6 [Mesh] remove Python.h and Xerces
seems not to be necessary anymore
2022-03-21 01:46:54 +01:00
luzpaz
a77ccbd007 MeshPart: fix header uniformity + remove superfluous whitespace (#5135)
* MeshPart: fix header uniformity + remove superfluous whitespace
2021-11-06 00:15:00 +01:00
wmayer
88f91d621b determine edge parameters where curve point will be projected onto a mesh edge 2019-06-11 13:25:52 +02:00
wmayer
4cfd4b0248 generate minumum number of points from an edge 2019-05-19 19:07:45 +02:00
wmayer
b89555347f do some code refactoring 2019-05-11 15:14:04 +02:00
wmayer
cf655e2365 implement optional Python binding for flatmesh using boost 2018-04-28 22:27:09 +02:00
WandererFan
0319adeec7 wmayer patch for Win & OCC7 compat 2016-07-11 15:32:16 +02:00
Mateusz Skowroński
05f95c0506 Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00