How to silence unused command line argument error with clang without disabling it?

Alex Gaynor

When using -Werror with clang, it transforms "warning: argument unused during compilation" messages into errors, which makes sense. There's a -Qunused-arguments flag to silence them entirely. My question is, is there some -Wno-error=... flag I can pass to make these not be errors, without disabling them entirely?

Alex Gaynor

Turns out the correct answer is -Wno-error=unused-command-line-argument.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to silence unused command line argument error with clang without disabling it?

From Dev

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

From Dev

How to Check for and raise an error for no command line argument

From Dev

How to Check for and raise an error for no command line argument

From Dev

How to pass argument to a subshell (by execute, NOT source) without command line argument?

From Dev

Psycopg2 Error: clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

From Dev

pip install salt returns 'clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

From Dev

How to Silence the read command

From Dev

Sudden "unused argument" error

From Dev

Sudden "unused argument" error

From Dev

How to uppercase the command line argument?

From Dev

C produce error if no argument is given in command line

From Dev

command line argument in bash gives an error

From Dev

Command line argument explanation and program error

From Dev

command line argument giving invalid initialiser error

From Dev

Disabling ethernet connection with command line?

From Dev

How to remove disabled (unused) snap packages with a single line of command?

From Dev

Error in HoltWinters ... unused argument (h =

From Dev

How to use knitr from command line with Rscript and command line argument?

From Dev

How to use UNUSED macro to silence warning within a CONSTEXPR function?

From Dev

How to pass CRLF as an argument to command line program?

From Dev

how to specify an command line argument with a variable in bash

From Java

how to pass a command line argument in the awk script

From Dev

How to intercept and remove a command line argument in bash

From Dev

How to intercept and remove a command line argument in bash

From Dev

How to read command line argument in shell sript

From Dev

command line argument and default value (how to reset)

From Dev

Getting an error running this program as a command line argument in Java, how can I fix this?

From Dev

error in cmake opencv: Parse error in command line argument: -D

Related Related

  1. 1

    How to silence unused command line argument error with clang without disabling it?

  2. 2

    clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

  3. 3

    How to Check for and raise an error for no command line argument

  4. 4

    How to Check for and raise an error for no command line argument

  5. 5

    How to pass argument to a subshell (by execute, NOT source) without command line argument?

  6. 6

    Psycopg2 Error: clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

  7. 7

    pip install salt returns 'clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

  8. 8

    How to Silence the read command

  9. 9

    Sudden "unused argument" error

  10. 10

    Sudden "unused argument" error

  11. 11

    How to uppercase the command line argument?

  12. 12

    C produce error if no argument is given in command line

  13. 13

    command line argument in bash gives an error

  14. 14

    Command line argument explanation and program error

  15. 15

    command line argument giving invalid initialiser error

  16. 16

    Disabling ethernet connection with command line?

  17. 17

    How to remove disabled (unused) snap packages with a single line of command?

  18. 18

    Error in HoltWinters ... unused argument (h =

  19. 19

    How to use knitr from command line with Rscript and command line argument?

  20. 20

    How to use UNUSED macro to silence warning within a CONSTEXPR function?

  21. 21

    How to pass CRLF as an argument to command line program?

  22. 22

    how to specify an command line argument with a variable in bash

  23. 23

    how to pass a command line argument in the awk script

  24. 24

    How to intercept and remove a command line argument in bash

  25. 25

    How to intercept and remove a command line argument in bash

  26. 26

    How to read command line argument in shell sript

  27. 27

    command line argument and default value (how to reset)

  28. 28

    Getting an error running this program as a command line argument in Java, how can I fix this?

  29. 29

    error in cmake opencv: Parse error in command line argument: -D

HotTag

Archive