AC6 Suppress build warning A1950W

I'm setting up an old uVision project in VS Code/Keil Studio and getting the build error "Warning: A1950W: The legacy armasm assembler is deprecated. Consider using the armclang integrated assembler instead.".

Reading some forums I need to add '--diag_suppress=1950'.

I've tried adding to the project .cproject.yml file under "project: setups: misc:", in various locations but the flag is not recognised; "armclang: error: unknown argument: '--diag_suppress=1950'".

Here is a snippet from my .cproject.yml file:

      misc:
        - C:
            - -std=c99
          C-CPP:
            - -fno-rtti
            - -funsigned-char
            - -fshort-enums
            - -fshort-wchar
            - -ffunction-sections
            - -Wno-packed
            - -Wno-missing-variable-declarations
            - -Wno-missing-prototypes
            - -Wno-missing-noreturn
            - -Wno-sign-conversion
            - -Wno-nonportable-include-path
            - -Wno-reserved-id-macro
            - -Wno-unused-macros
            - -Wno-documentation-unknown-command
            - -Wno-documentation
            - -Wno-license-management
            - -Wno-parentheses-equality
          CPP:
            - -xc++
            - -std=c++11
          ASM:
            - -masm=auto
            - --diag_suppress=1950

Any suggestions on how I can fix this?

0