Skip to content

beeb/conf.h: silence warning about BBCMICRO_TRACE redefined - #32

Merged
zoltanvb merged 1 commit into
zoltanvb:masterfrom
ToKe79:BBCMICRO_TRACE_silence_redefined_warning
Feb 17, 2026
Merged

beeb/conf.h: silence warning about BBCMICRO_TRACE redefined#32
zoltanvb merged 1 commit into
zoltanvb:masterfrom
ToKe79:BBCMICRO_TRACE_silence_redefined_warning

Conversation

@ToKe79

@ToKe79 ToKe79 commented Feb 16, 2026

Copy link
Copy Markdown

this header file is included in multiple files and for each one following warning is displayed:

../beeb/include/beeb/conf.h:22:9: warning: 'BBCMICRO_TRACE' redefined
22 | #define BBCMICRO_TRACE 0
   |         ^~~~~~~~~~~~~~

add ifndef guard to skip the define after BBCMICRO_TRACE is defined.

this header file is included in multiple files and for each one
following warning is displayed:

../beeb/include/beeb/conf.h:22:9: warning: 'BBCMICRO_TRACE' redefined
22 | #define BBCMICRO_TRACE 0
   |         ^~~~~~~~~~~~~~

add ifndef guard to skip the define after BBCMICRO_TRACE is defined.
@zoltanvb
zoltanvb merged commit 6485984 into zoltanvb:master Feb 17, 2026
1 check passed
@ToKe79
ToKe79 deleted the BBCMICRO_TRACE_silence_redefined_warning branch February 17, 2026 07:48
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