How to tell GCC to ignore warnings in some source files?

Paul Manta

There are a few sources files in my project that are automatically generated by a tool. Unfortunately, these sources cause GCC to issues some warnings which is quite inconvenient. Is there a way to tell GCC to ignore warnings for these source files, without modifying the sources? They shouldn't be modified because, as I've said, they are auto-generated.

The warnings are mostly about incompatible pointer types and implicit function declaration.

HighPredator

That is possible if you are building project through a makefile. You will just have to create different rules for those files. For example by creating another set of CFLAGS.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How to ignore source files in bower

分類Dev

GCC misses some errors or warnings

分類Dev

Restricting clang warnings to my source files

分類Dev

Correct/Incorrect to ignore some React useEffect dependency warnings?

分類Dev

How to ignore PHP_CodeSniffer warnings

分類Dev

How to tell Symfony 3 to ignore certain annotations?

分類Dev

How to tell postMessage structured clone to ignore properties?

分類Dev

how to tell rsync to preserve time stamp on files when source tree has a mounted point

分類Dev

How to tell Angular not to compile some part of template?

分類Dev

How to tell what wake source is when Wake Source: Unknown

分類Dev

How to tell Linux Kernel > 3.0 to completely ignore a failing disk?

分類Dev

How do I tell GCC asm that an input register is clobbered?

分類Dev

How do I treat warnings as errors in specific Java files?

分類Dev

How to tell PIT to not mutate some specific portions of code?

分類Dev

How to ignore files via GUI in Gitkraken?

分類Dev

how to ignore files within subdirectories using chokidar

分類Dev

How to ignore temporarily generated files in SourceTree

分類Dev

How to Ignore .aux files in Geany's Find in Files?

分類Dev

How can I tell Brunch not to concatenate javascript files?

分類Dev

How to ignore some variables in a class when performing a search operation in dart

分類Dev

How to ignore child DIV if parent div has some specific class

分類Dev

How to ignore child DIV if parent div has some specific class

分類Dev

Ignore warnings in external modules when using CMake

分類Dev

How to tell webpack to ignore node modules, both core and installed from npm?

分類Dev

Suppressing GCC warnings on a per directory basis

分類Dev

How to filter some files out of my directory?

分類Dev

How to add TypeScript definition files to source control?

分類Dev

Semantic, cedet how to force parsing of source files

分類Dev

how to edit or see the source code for dll files

Related 関連記事

  1. 1

    How to ignore source files in bower

  2. 2

    GCC misses some errors or warnings

  3. 3

    Restricting clang warnings to my source files

  4. 4

    Correct/Incorrect to ignore some React useEffect dependency warnings?

  5. 5

    How to ignore PHP_CodeSniffer warnings

  6. 6

    How to tell Symfony 3 to ignore certain annotations?

  7. 7

    How to tell postMessage structured clone to ignore properties?

  8. 8

    how to tell rsync to preserve time stamp on files when source tree has a mounted point

  9. 9

    How to tell Angular not to compile some part of template?

  10. 10

    How to tell what wake source is when Wake Source: Unknown

  11. 11

    How to tell Linux Kernel > 3.0 to completely ignore a failing disk?

  12. 12

    How do I tell GCC asm that an input register is clobbered?

  13. 13

    How do I treat warnings as errors in specific Java files?

  14. 14

    How to tell PIT to not mutate some specific portions of code?

  15. 15

    How to ignore files via GUI in Gitkraken?

  16. 16

    how to ignore files within subdirectories using chokidar

  17. 17

    How to ignore temporarily generated files in SourceTree

  18. 18

    How to Ignore .aux files in Geany's Find in Files?

  19. 19

    How can I tell Brunch not to concatenate javascript files?

  20. 20

    How to ignore some variables in a class when performing a search operation in dart

  21. 21

    How to ignore child DIV if parent div has some specific class

  22. 22

    How to ignore child DIV if parent div has some specific class

  23. 23

    Ignore warnings in external modules when using CMake

  24. 24

    How to tell webpack to ignore node modules, both core and installed from npm?

  25. 25

    Suppressing GCC warnings on a per directory basis

  26. 26

    How to filter some files out of my directory?

  27. 27

    How to add TypeScript definition files to source control?

  28. 28

    Semantic, cedet how to force parsing of source files

  29. 29

    how to edit or see the source code for dll files

ホットタグ

アーカイブ