Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Feb 13, 2023

Fixes miscellaneous warnings when building with Clang 15.

Contributed by STMicroelectronics

Signed-off-by: Erik MÅLLBERG erik.lundin@st.com

@ghost
Copy link
Author

ghost commented Feb 13, 2023

I think it would be good to not squash commits when merging, to keep matters separated.

@github-actions
Copy link

Test Results

  27 files    51 suites   2s ⏱️
111 tests 111 ✔️ 0 💤 0
333 runs  333 ✔️ 0 💤 0

Results for commit 3b2a61f.

@github-actions
Copy link

github-actions bot commented Feb 13, 2023

Test Results

    8 files    50 suites   5m 36s ⏱️
161 tests 161 ✔️ 0 💤 0
640 runs  640 ✔️ 0 💤 0

Results for commit 3d35069.

♻️ This comment has been updated with latest results.

@ghost
Copy link
Author

ghost commented Feb 13, 2023

@edriouk and @brondani, could somebody please review?

edriouk
edriouk previously approved these changes Feb 13, 2023
@edriouk edriouk dismissed their stale review February 13, 2023 12:10

Windows.h must be case sensitive

Erik MÅLLBERG added 3 commits February 14, 2023 10:30
Seems to have been necessary with GCC 8 but works without this on newer
GCC. Clang 15.0.7 fails if trying to link with it:

    LLD Link... ld.lld: error: unable to find library -lstdc++fs

Contributed by STMicroelectronics

Signed-off-by: Erik MÅLLBERG <erik.lundin@st.com>
RteItem::Construct(XMLTreeElement*) was hiding XmlItem::Construct()

Clang complained with:

    warning: 'RteItem::Construct' hides overloaded virtual function [-Woverloaded-virtual]

See https://stackoverflow.com/a/30192779

Contributed by STMicroelectronics

Signed-off-by: Erik MÅLLBERG <erik.lundin@st.com>
Numerous warnings when building with Clang 15:

    warning: '[...]::IsEmpty' hides overloaded virtual function [-Woverloaded-virtual]

and

    warning: '[...]' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]

Also remove duplicate XmlItem::IsEmpty(). It was moved from
RteAttributes in 19ef2e4.

Contributed by STMicroelectronics

Signed-off-by: Erik MÅLLBERG <erik.lundin@st.com>
@ghost ghost mentioned this pull request Feb 14, 2023
@codecov
Copy link

codecov bot commented Feb 14, 2023

Codecov Report

Merging #737 (3d35069) into main (ca5f179) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #737   +/-   ##
=======================================
  Coverage   51.33%   51.33%           
=======================================
  Files         116      116           
  Lines       21471    21471           
  Branches    11821    11821           
=======================================
  Hits        11022    11022           
  Misses       8440     8440           
  Partials     2009     2009           
Flag Coverage Δ
buildmgr-cov 75.42% <ø> (ø)
packchk-cov 50.79% <ø> (ø)
packgen-cov 81.72% <ø> (ø)
projmgr-cov 80.62% <ø> (ø)
svdconv-cov 32.58% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@ghost ghost requested a review from edriouk February 14, 2023 10:07
edriouk pushed a commit that referenced this pull request Feb 14, 2023
When cross compiling for Windows, some files weren't found due to
unmatched case in the filename. The solution to use lowercase (see Stack
Overflow link below) should work both on both Windows and other OSes.

https://stackoverflow.com/q/15466613

Files below libs/crossplatform/include/win/ are renamed for consistency.

Moved from #737, see discussion
[here](#737 (comment)).

Contributed by STMicroelectronics

Signed-off-by: Erik MÅLLBERG <erik.lundin@st.com>

Signed-off-by: Erik MÅLLBERG <erik.lundin@st.com>
@edriouk edriouk merged commit cbc521c into Open-CMSIS-Pack:main Feb 14, 2023
@ghost ghost mentioned this pull request Feb 14, 2023
edriouk pushed a commit that referenced this pull request Feb 14, 2023
This fixes building for GCC 8. I found out that people still [build with
Ubuntu 18](#696) and
[some
changes](e7b1121)
in #737 didn't account for that.

- Restore explicit linking with `stdc++fs` (but only for GCC 8)
- Add missing header (didn't build on GCC 8.4.0 without this)

Contributed by STMicroelectronics
Signed-off-by: Erik MÅLLBERG <erik.lundin@st.com>

@edriouk Please review :)

---------

Signed-off-by: Erik MÅLLBERG <erik.lundin@st.com>
@ghost ghost deleted the clang15-warnings branch February 14, 2023 16:27
jkrech pushed a commit that referenced this pull request Apr 27, 2023
Addresses #858
Reverts partially #798
Reapplies fix from #737

Co-authored-by: Jonatan Antoni <jonatan.antoni@arm.com>
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.

1 participant