This does not prevent me from compiling, but it is strange and disturbing in a strangely disturbing kind of way


Are these from compile warnings?
Can I suppress these?
Thoughts?
Moderator: Benj
Sure thing.Enamul wrote:Can you please post your program so that we can have a look what is going wrong?
So, I tried the following:3.8 Options to Request or Suppress Warnings
Warnings are diagnostic messages that report constructions that are not inherently erroneous but that are risky or suggest there may have been an error.
The following language-independent options do not enable specific warnings but control the kinds of diagnostics produced by GCC.
-fsyntax-only
Check the code for syntax errors, but don't do anything beyond that.
-fmax-errors=n
Limits the maximum number of error messages to n, at which point GCC bails out rather than attempting to continue processing the source code. If n is 0 (the default), there is no limit on the number of error messages produced. If -Wfatal-errors is also specified, then -Wfatal-errors takes precedence over this option.
-w
Inhibit all warning messages.
-Werror
Make all warnings into errors.
-Werror=
Make the specified warning into an error. The specifier for a warning is appended, for example -Werror=switch turns the warnings controlled by -Wswitch into errors. This switch takes a negative form, to be used to negate -Werror for specific warnings, for example -Wno-error=switch makes -Wswitch warnings not be errors, even when -Werror is in effect.
The warning message for each controllable warning includes the option that controls the warning. That option can then be used with -Werror= and -Wno-error= as described above. (Printing of the option in the warning message can be disabled using the -fno-diagnostics-show-option flag.)
Note that specifying -Werror=foo automatically implies -Wfoo. However, -Wno-error=foo does not imply anything.
-Wfatal-errors
This option causes the compiler to abort compilation on the first error occurred rather than trying to keep going and printing further error messages.
Code: Select all
@arm-elf-gcc -c -mcpu=arm7tdmi -Os -funsigned-char -I"%~dp0..\Global" -std=gnu99 -Wa,-aln=%1.lst %1.c -o %1.o
Code: Select all
@arm-elf-gcc -c -w -mcpu=arm7tdmi -Os -funsigned-char -I"%~dp0..\Global" -std=gnu99 -Wa,-aln=%1.lst %1.c -o %1.o