Skip to content

move #includes from headers to .c files, remove unnecessary #includes.#193

Open
RokerHRO wants to merge 3 commits into
NetworkBlockDevice:masterfrom
RokerHRO:fix_includes
Open

move #includes from headers to .c files, remove unnecessary #includes.#193
RokerHRO wants to merge 3 commits into
NetworkBlockDevice:masterfrom
RokerHRO:fix_includes

Conversation

@RokerHRO

@RokerHRO RokerHRO commented May 3, 2026

Copy link
Copy Markdown
Contributor

My IDE QtCreator complains about unnecessary #include directives or #includes in .h files whose declarations are only used/needed in certain .c files, not in the header itself.

So tried to fix these complains until it "works on my machine". But I cannot speak for other systems or configurations. That's why I only commented-out the removed #include directives so far, instead of removing them completely.

If these changes work on all supported & tested platforms I'd remove the // #include lines. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant