Skip to content

Portability and warning fixes#601

Merged
VolkerEnderlein merged 2 commits intocoin3d:masterfrom
tritao:pr/modern-gl/004-portability-warnings
Mar 30, 2026
Merged

Portability and warning fixes#601
VolkerEnderlein merged 2 commits intocoin3d:masterfrom
tritao:pr/modern-gl/004-portability-warnings

Conversation

@tritao
Copy link
Copy Markdown
Contributor

@tritao tritao commented Jan 27, 2026

Summary

Small portability and warning fixes to keep builds clean and predictable on modern toolchains.

Why

These are small, low-risk changes that reduce build friction (warnings and portability nits) before the larger rendering work lands.

Changes

  • Portability: prefer clock_gettime when available (src/base/time.cpp).
  • Warnings: fix format specifier issues in src/xml/element.cpp.

Testing

Not run in isolation.

Commits

  • 8c1d4f52a4: Fix wrong specifier warnings in element.cpp
  • 3be632727a: Use clock_gettime when its available instead of deprecate…

@VolkerEnderlein
Copy link
Copy Markdown
Member

@tritao Soft bump, any progress on the issue?

@tritao
Copy link
Copy Markdown
Contributor Author

tritao commented Mar 29, 2026

@VolkerEnderlein This one does not have any conflicts, is there anything you want addressed?

@VolkerEnderlein
Copy link
Copy Markdown
Member

@tritao I left a review comment to remove the superfluous line #include <time.h> as this include is already included via #include <ctime>

@tritao
Copy link
Copy Markdown
Contributor Author

tritao commented Mar 29, 2026

Weird, I don't see it, but alright, I'll update this and the other PRs ASAP.

@VolkerEnderlein
Copy link
Copy Markdown
Member

When opening the PR without being logged in, I am also unable to see the review comment, maybe thats the issue. Thanks, Cheers

Copy link
Copy Markdown
Member

@VolkerEnderlein VolkerEnderlein left a comment

Choose a reason for hiding this comment

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

It would be nice if you could address this.

Comment thread src/base/time.cpp Outdated

#ifdef HAVE_TIME_H
#include <ctime>
#include <time.h>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Header <time.h> is a C include. It is included in C++ files as <ctime>. So this line can be safely removed

@VolkerEnderlein
Copy link
Copy Markdown
Member

VolkerEnderlein commented Mar 29, 2026

The issue was on my side, I did not properly finished the review session, it was still pending :( Sorry for that.

@tritao tritao force-pushed the pr/modern-gl/004-portability-warnings branch from 50144f4 to f795d85 Compare March 30, 2026 11:09
@tritao
Copy link
Copy Markdown
Contributor Author

tritao commented Mar 30, 2026

Updated, can you check this latest version?

@VolkerEnderlein VolkerEnderlein merged commit 90067b8 into coin3d:master Mar 30, 2026
5 checks passed
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