Commit Graph
1869 Commits
Author SHA1 Message Date
Mateusz Pusz 84671dece7 Merge pull request #385 from OttoKuennecke/WarningsFixed
Warnings fixed
2022-08-10 22:33:27 +02:00
Mateusz Pusz e0d5e25104 build: new compilation warnings enabled
Refers to #385
2022-08-10 12:42:43 +02:00
Mateusz Pusz 02bf37abc4 build(example): Disabled Kalman examples 6-8 for AppleClang (example 5 enabled)
Resolves #382
2022-08-10 11:20:29 +02:00
Mateusz Pusz 11c43e0412 build(example): Kalman examples 5 and 6 disabled for AppleClang
Resolves #382
2022-08-10 09:47:33 +02:00
Björn Schäpers 9c514439d1 Fix: 32 bit overflow
../units/src/core/include/units/magnitude.h: In instantiation of 'static constexpr intmax_t units::detail::prime_factorization<N>::get_or_compute_first_factor() [with long long int N = 149597870700; intmax_t = long long int]':
../units/src/core/include/units/magnitude.h:627:74:   required from 'constexpr const intmax_t units::detail::prime_factorization<149597870700>::first_base'
../units/src/core/include/units/magnitude.h:632:54:   required from 'constexpr const auto units::detail::prime_factorization<149597870700>::value'
../units/src/core/include/units/magnitude.h:631:25:   required from 'struct units::detail::prime_factorization<149597870700>'
../units/src/core/include/units/magnitude.h:642:71:   required from 'constexpr const auto units::detail::prime_factorization_v<149597870700>'
../units/src/core/include/units/magnitude.h:655:18:   required from 'constexpr auto [requires units::Magnitude<<placeholder>, >] units::mag() [with ratio R = ratio{149597870700, 1}]'
../units/src/systems/si/include/units/isq/si/length.h:59:91:   required from here
../units/src/core/include/units/magnitude.h:623:70: error: unsigned conversion from 'long long int' to 'std::size_t' {aka 'unsigned int'} changes value from '149597870700' to '3568982636' [-Werror=overflow]
  623 |       return static_cast<std::intmax_t>(factorizer::find_first_factor(N));
      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
2022-08-10 08:37:55 +02:00
Björn Schäpers cce0d2c12b Supress "zero as null pointer constant" warning 2022-08-10 08:18:30 +02:00
Björn Schäpers d1130c9d39 Suppress float-equal warning 2022-08-09 16:38:29 +02:00
Mateusz Pusz 64fcf4c2b6 fix: Conan does not seem to properly use the project prefix for the -c parameter
Resolves #384
2022-08-06 20:11:31 +02:00
Mateusz Pusz 1957e4424c docs: TODO comments cleanup in mixed system unit test files 2022-08-03 17:09:15 +02:00
Mateusz Pusz 4e044c4e43 refactor: hypot was overconstrained 2022-08-03 13:51:18 +02:00
Mateusz Pusz a1e1b70b92 test: Unit tests for 3-argument hypot added 2022-08-03 13:35:18 +02:00
Mateusz Pusz 4313df390c refactor: hypot refactored to use variadic common_type version 2022-08-03 13:34:45 +02:00
Mateusz Pusz 4c8b3ce290 test: Commented out ceil unit test enabled as it works correctly now 2022-08-03 13:12:24 +02:00
Mateusz Pusz b252da0fe1 test: hypot unit tests added 2022-08-03 13:10:59 +02:00
Mateusz Pusz dd4679459d feat: hypot support added 2022-08-03 12:29:49 +02:00
Mateusz Pusz 9aa3fd4d00 fix: prefixed_alias_unit constraints fixed 2022-08-03 11:29:20 +02:00
Mateusz Pusz 0f37d0af60 docs: Broken links in the documentation fixed 2022-08-02 18:36:17 +02:00
Mateusz Pusz 6267b3372c docs: READTHEDOCS build support removed 2022-08-02 18:35:52 +02:00
Mateusz Pusz 3478c462fa docs: Custom pygments cpp lexer no longer needed 2022-08-02 18:35:11 +02:00
Mateusz Pusz 25e868a16f docs: Some outdated TODO comments removed 2022-08-02 18:33:58 +02:00
Mateusz Pusz edf59ac47c docs: Usage page updated for new Conan configuration properties 2022-08-02 17:25:40 +02:00
Mateusz Pusz 8a35dcc73f ci: CI scripts updated to use Conan configuration properties 2022-08-02 17:17:51 +02:00
Mateusz Pusz aab2a20505 build(conan): Environment variables replaced with Conan configuration properties 2022-08-02 17:12:20 +02:00
Mateusz Pusz d500f3009b ci: build.py removed as it is no longer needed 2022-08-02 16:47:17 +02:00
Mateusz Pusz 8c01f8dd65 ci: ci-test-package-cmake.yml cleanup 2022-08-02 16:16:40 +02:00
Mateusz Pusz c00d8990f4 ci: Conan package will be uploaded only either for a 'stable' channel or for a commit on a master branch 2022-08-02 16:15:59 +02:00
Mateusz Pusz 6f791c7cc4 ci: Conan remote usage fixed 2022-08-02 15:59:29 +02:00
Mateusz Pusz 5fc4820102 ci: -b outdated fixed 2022-08-02 15:44:40 +02:00
Mateusz Pusz 6147348b88 ci: ci-conan no longer uses conan-package-tools 2022-08-02 15:41:20 +02:00
Mateusz Pusz 9944de10f9 ci: fmt dependency checked only when UNITS_USE_LIBFMT is set 2022-08-02 15:10:21 +02:00
Mateusz Pusz 6557647ce9 ci: MSVC condition added to VS-specific branches 2022-08-02 12:57:09 +02:00
Mateusz Pusz 938a25c9a3 ci: MSVC compiler paths removed 2022-08-02 10:44:25 +02:00
Mateusz Pusz 82e808855f ci: ci-test-package-cmake.yml updated to the ci-conan.yml state 2022-08-02 09:42:31 +02:00
Mateusz Pusz db6c46ad3a ci: conanvcvars.bat call fixed 2022-08-02 09:07:59 +02:00
Mateusz Pusz a134d74ca2 ci: Downcase 'build_type' now uses a GitHub action 2022-08-02 08:56:16 +02:00
Mateusz Pusz f24f87302f ci: CMake preset name fixed in documentation script 2022-08-02 08:51:52 +02:00
Mateusz Pusz 82f018f216 ci: working-directory fixed 2022-08-02 08:39:59 +02:00
Mateusz Pusz 1c5061338f ci: GitHub actions updated with CMake presets usage 2022-08-02 08:30:14 +02:00
Mateusz Pusz 9b1c9f16f1 ci: Check CMake version 2022-08-01 18:31:03 +02:00
Mateusz Pusz 9c10b1cdbe docs: "Usage" documentation updated with CMake presets usage 2022-08-01 18:29:49 +02:00
Mateusz Pusz 804d4e1cd4 build(conan): cmake_layout support added 2022-08-01 18:29:03 +02:00
Mateusz Pusz d310bb1b8d docs: Documentation updated for the latest unknown_coherent_unit changes 2022-08-01 11:59:45 +02:00
Mateusz Pusz 0ebf85b9db fix: unknown_coherent_unit fixed 2022-08-01 11:59:00 +02:00
Mateusz Pusz bb5c02e09e fix: Quantity inversion operation fixed
Resolves #367
2022-08-01 10:03:55 +02:00
Mateusz Pusz 5bd378a835 refactor: base_units_ratio.h renamed to absolute_magnitude.h 2022-07-31 15:45:40 +02:00
Mateusz Pusz 7cd168377f build(conan): Conanfile fixed after the last wrong commit 2022-07-30 14:30:16 +02:00
Mateusz Pusz 2e410278ba Revert "build(conan): cmake_layout import added too early by an accident"
This reverts commit 5efbda75d5.
2022-07-30 14:29:17 +02:00
Mateusz Pusz c74bd08cd5 Merge branch 'master' of github.com:mpusz/units 2022-07-30 14:24:51 +02:00
Mateusz Pusz 5efbda75d5 build(conan): cmake_layout import added too early by an accident 2022-07-30 10:57:59 +02:00
Mateusz Pusz d50ed286b3 Merge pull request #381 from JohelEGP/llvm16
refactor: update hacks for LLVM 16
2022-07-30 10:49:44 +02:00