Skip to content

Compiler: control more C compiler warnings via pragmas in the _external.h header.#503

Open
chqrlie wants to merge 1 commit into
c2lang:masterfrom
chqrlie:warning-control
Open

Compiler: control more C compiler warnings via pragmas in the _external.h header.#503
chqrlie wants to merge 1 commit into
c2lang:masterfrom
chqrlie:warning-control

Conversation

@chqrlie
Copy link
Copy Markdown
Contributor

@chqrlie chqrlie commented Apr 16, 2026

No description provided.

@chqrlie chqrlie force-pushed the warning-control branch 7 times, most recently from a76edad to cf19f08 Compare April 23, 2026 08:19
@chqrlie chqrlie changed the title Compiler: control more C compiler warnings via pragmas Compiler: control more C compiler warnings via pragmas in the _external.h header. Apr 23, 2026
@bvdberg
Copy link
Copy Markdown
Member

bvdberg commented Apr 23, 2026

What would be the advantage in doing it that way?

@chqrlie
Copy link
Copy Markdown
Contributor Author

chqrlie commented Apr 23, 2026

Multiple advantages:

  • simpler command line to invoke the C compiler in the (generated) Makefile
  • more portable C compiler command line: warnings vary from one compiler to another
  • group all warning control in the same place

@chqrlie chqrlie force-pushed the warning-control branch 7 times, most recently from 9dd64a1 to 9e3e828 Compare April 29, 2026 16:37
@chqrlie chqrlie force-pushed the warning-control branch 2 times, most recently from e6ad0f7 to ae02402 Compare May 5, 2026 19:29
@chqrlie chqrlie force-pushed the warning-control branch from ae02402 to 693ceb1 Compare May 11, 2026 06:03
@chqrlie chqrlie force-pushed the warning-control branch from 693ceb1 to 7396d9f Compare May 11, 2026 12:58
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