├── .travis.yml ├── COPYING ├── LICENSE ├── README.md ├── clang ├── warnings-clang-3.2.txt ├── warnings-clang-3.3.txt ├── warnings-clang-3.4.txt ├── warnings-clang-3.5.txt ├── warnings-clang-3.6.txt ├── warnings-clang-3.7.txt ├── warnings-clang-3.8.txt ├── warnings-clang-3.9.txt ├── warnings-clang-4.txt ├── warnings-clang-5.txt ├── warnings-clang-6.txt ├── warnings-clang-7.txt ├── warnings-clang-8.txt ├── warnings-clang-diff-3.2-3.3.txt ├── warnings-clang-diff-3.3-3.4.txt ├── warnings-clang-diff-3.4-3.5.txt ├── warnings-clang-diff-3.5-3.6.txt ├── warnings-clang-diff-3.6-3.7.txt ├── warnings-clang-diff-3.7-3.8.txt ├── warnings-clang-diff-3.8-3.9.txt ├── warnings-clang-diff-3.9-4.txt ├── warnings-clang-diff-4-5.txt ├── warnings-clang-diff-5-6.txt ├── warnings-clang-diff-6-7.txt ├── warnings-clang-diff-7-8.txt ├── warnings-clang-top-level-3.2.txt ├── warnings-clang-top-level-3.3.txt ├── warnings-clang-top-level-3.4.txt ├── warnings-clang-top-level-3.5.txt ├── warnings-clang-top-level-3.6.txt ├── warnings-clang-top-level-3.7.txt ├── warnings-clang-top-level-3.8.txt ├── warnings-clang-top-level-3.9.txt ├── warnings-clang-top-level-4.txt ├── warnings-clang-top-level-5.txt ├── warnings-clang-top-level-6.txt ├── warnings-clang-top-level-7.txt ├── warnings-clang-top-level-8.txt ├── warnings-clang-unique-3.2.txt ├── warnings-clang-unique-3.3.txt ├── warnings-clang-unique-3.4.txt ├── warnings-clang-unique-3.5.txt ├── warnings-clang-unique-3.6.txt ├── warnings-clang-unique-3.7.txt ├── warnings-clang-unique-3.8.txt ├── warnings-clang-unique-3.9.txt ├── warnings-clang-unique-4.txt ├── warnings-clang-unique-5.txt ├── warnings-clang-unique-6.txt ├── warnings-clang-unique-7.txt └── warnings-clang-unique-8.txt ├── gcc ├── meld-gcc-5-6-wall.png ├── warnings-gcc-3.2.txt ├── warnings-gcc-3.4.txt ├── warnings-gcc-4.0.txt ├── warnings-gcc-4.1.txt ├── warnings-gcc-4.2.txt ├── warnings-gcc-4.3.txt ├── warnings-gcc-4.4.txt ├── warnings-gcc-4.5.txt ├── warnings-gcc-4.6.txt ├── warnings-gcc-4.7.txt ├── warnings-gcc-4.8.txt ├── warnings-gcc-4.9.txt ├── warnings-gcc-5.txt ├── warnings-gcc-6.txt ├── warnings-gcc-7.txt ├── warnings-gcc-8.txt ├── warnings-gcc-diff-3.4-4.0.txt ├── warnings-gcc-diff-4.0-4.1.txt ├── warnings-gcc-diff-4.1-4.2.txt ├── warnings-gcc-diff-4.2-4.3.txt ├── warnings-gcc-diff-4.3-4.4.txt ├── warnings-gcc-diff-4.4-4.5.txt ├── warnings-gcc-diff-4.5-4.6.txt ├── warnings-gcc-diff-4.6-4.7.txt ├── warnings-gcc-diff-4.7-4.8.txt ├── warnings-gcc-diff-4.8-4.9.txt ├── warnings-gcc-diff-4.9-5.txt ├── warnings-gcc-diff-5-6.txt ├── warnings-gcc-diff-6-7.txt ├── warnings-gcc-diff-7-8.txt ├── warnings-gcc-top-level-3.4.txt ├── warnings-gcc-top-level-4.0.txt ├── warnings-gcc-top-level-4.1.txt ├── warnings-gcc-top-level-4.2.txt ├── warnings-gcc-top-level-4.3.txt ├── warnings-gcc-top-level-4.4.txt ├── warnings-gcc-top-level-4.5.txt ├── warnings-gcc-top-level-4.6.txt ├── warnings-gcc-top-level-4.7.txt ├── warnings-gcc-top-level-4.8.txt ├── warnings-gcc-top-level-4.9.txt ├── warnings-gcc-top-level-5.txt ├── warnings-gcc-top-level-6.txt ├── warnings-gcc-top-level-7.txt ├── warnings-gcc-top-level-8.txt ├── warnings-gcc-unique-3.4.txt ├── warnings-gcc-unique-4.0.txt ├── warnings-gcc-unique-4.1.txt ├── warnings-gcc-unique-4.2.txt ├── warnings-gcc-unique-4.3.txt ├── warnings-gcc-unique-4.4.txt ├── warnings-gcc-unique-4.5.txt ├── warnings-gcc-unique-4.6.txt ├── warnings-gcc-unique-4.7.txt ├── warnings-gcc-unique-4.8.txt ├── warnings-gcc-unique-4.9.txt ├── warnings-gcc-unique-5.txt ├── warnings-gcc-unique-6.txt ├── warnings-gcc-unique-7.txt └── warnings-gcc-unique-8.txt └── parsers ├── .gitignore ├── GccOptions.g4 ├── TableGen.g4 ├── build.ninja ├── common.py ├── create-diff.sh ├── parse-clang-diagnostic-groups.py ├── parse-gcc-warning-options.py ├── process-clang-git.sh ├── process-gcc-git.sh └── requirements.txt /.travis.yml: -------------------------------------------------------------------------------- 1 | dist: xenial 2 | sudo: required 3 | before_install: 4 | - sudo apt-get update -qq 5 | - sudo apt-get install -qq ninja-build 6 | 7 | language: python 8 | python: 9 | - "3.5" 10 | - "3.6" 11 | - "3.7" 12 | install: 13 | - "wget -O antlr.jar http://www.antlr.org/download/antlr-4.7.2-complete.jar" 14 | - "echo -e '#!/bin/sh\nexec java -jar \"$(dirname \"$0\")\"/antlr.jar \"$@\"' > antlr4" 15 | - chmod 755 antlr4 16 | - export PATH="$PWD:$PATH" 17 | - "pip3 install -r parsers/requirements.txt" 18 | script: ninja -C parsers/ test 19 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Compiler warning flags collection and parser 2 | Copyright (C) 2015, 2016 Jussi Judin 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License version 3 as 6 | published by the Free Software Foundation. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program. If not, see . 15 | -------------------------------------------------------------------------------- /clang/warnings-clang-diff-3.2-3.3.txt: -------------------------------------------------------------------------------- 1 | +-Warray-bounds 2 | +-Warray-bounds-pointer-arithmetic 3 | +-Wbad-array-new-length 4 | +-Wbitfield-constant-conversion 5 | +-Wbuiltin-macro-redefined 6 | +-Wc++11-compat-pedantic 7 | +-Wc++1y-extensions 8 | +-Wc99-compat 9 | +-Wconfig-macros 10 | +-Wcxx98-cxx11-compat 11 | +-Wcxx98-cxx11-compat-pedantic 12 | --Wdefault-arg-special-member 13 | +-Wdangling-field 14 | +-Wdeprecated-objc-isa-usage 15 | +-Wdistributed-object-modifiers 16 | +-Wdocumentation-unknown-command 17 | +-Wgnu-static-float-init 18 | +-Wincompatible-pointer-types-discards-qualifiers 19 | +-Winvalid-noreturn 20 | +-Winvalid-source-encoding 21 | --Wlambda-extensions 22 | +-Wmethod-signatures 23 | --Wmodule-build 24 | +-Wmissing-noreturn 25 | +-Wmodule-conflict 26 | +-Wnon-pod-varargs 27 | +-Wnull-arithmetic 28 | +-Wobjc-property-synthesis 29 | +-Woverloaded-shift-op-parentheses 30 | +-Wreinterpret-base-class 31 | +-Wreturn-stack-address 32 | --Wsequence-point # DUMMY switch 33 | +-Wsequence-point 34 | +-Wsizeof-array-decay 35 | +-Wsizeof-pointer-memaccess 36 | +-Wsource-uses-openmp 37 | +-Wstatic-float-init 38 | +-Wstatic-in-inline 39 | +-Wstatic-local-in-inline 40 | +-Wstatic-self-init 41 | +-Wthread-safety-beta 42 | +-Wundefined-reinterpret-cast 43 | +-Wunknown-warning-option 44 | +-Wunsequenced 45 | +-Wunused-command-line-argument 46 | +-Wunused-sanitize-argument 47 | +-Wvla-extension 48 | -------------------------------------------------------------------------------- /clang/warnings-clang-diff-3.3-3.4.txt: -------------------------------------------------------------------------------- 1 | +-Wbridge-cast 2 | +-Wc++11-compat-deprecated-writable-strings 3 | +-Wc++98-c++11-compat 4 | +-Wc++98-c++11-compat-pedantic 5 | +-Wconsumed 6 | --Wcxx98-cxx11-compat 7 | --Wcxx98-cxx11-compat-pedantic 8 | +-Wdeprecated-increment-bool 9 | +-Wdeprecated-objc-pointer-introspection 10 | +-Wdeprecated-objc-pointer-introspection-performSelector 11 | +-Wdeprecated-register 12 | +-Wextern-c-compat 13 | +-Wgnu-alignof-expression 14 | +-Wgnu-anonymous-struct 15 | +-Wgnu-binary-literal 16 | +-Wgnu-case-range 17 | +-Wgnu-complex-integer 18 | +-Wgnu-compound-literal-initializer 19 | +-Wgnu-conditional-omitted-operand 20 | +-Wgnu-empty-initializer 21 | +-Wgnu-empty-struct 22 | +-Wgnu-flexible-array-initializer 23 | +-Wgnu-flexible-array-union-member 24 | +-Wgnu-folding-constant 25 | +-Wgnu-imaginary-constant 26 | +-Wgnu-label-as-value 27 | +-Wgnu-redeclared-enum 28 | +-Wgnu-statement-expression 29 | +-Wgnu-string-literal-operator-template 30 | +-Wgnu-union-cast 31 | +-Wgnu-variable-sized-type-not-at-end 32 | +-Wgnu-zero-line-directive 33 | +-Wgnu-zero-variadic-macro-arguments 34 | +-Wincomplete-module 35 | +-Wint-to-void-pointer-cast 36 | +-Winvalid-command-line-argument 37 | +-Winvalid-iboutlet 38 | +-Wkeyword-compat 39 | +-Wlogical-not-parentheses 40 | +-Wloop-analysis 41 | +-Wnewline-eof 42 | +-Wobjc-literal-missing-atsign 43 | +-Wobjc-string-concatenation 44 | +-Wredeclared-class-member 45 | +-Wselector-type-mismatch 46 | +-Wstring-plus-char 47 | +-Wunsupported-friend 48 | +-Wunused-const-variable 49 | +-Wunused-property-ivar 50 | +-Wvarargs 51 | -------------------------------------------------------------------------------- /clang/warnings-clang-diff-3.4-3.5.txt: -------------------------------------------------------------------------------- 1 | +-Wabsolute-value 2 | --Waddress # DUMMY switch 3 | +-Waddress 4 | +-Wbackend-plugin 5 | +-Wc++14-compat 6 | +-Wc++14-compat-pedantic 7 | +-Wc++1z-extensions 8 | +-Wc++98-c++11-c++14-compat 9 | +-Wc++98-c++11-c++14-compat-pedantic 10 | +-Wclass-varargs 11 | +-Wcuda-compat 12 | +-Wdealloc-in-category 13 | +-Wenum-too-large 14 | +-Wfallback 15 | +-Wfloat-conversion 16 | +-Wframe-larger-than= 17 | +-Wfunction-def-in-objc-container 18 | +-Wignored-pragmas 19 | +-Wincompatible-ms-struct 20 | +-Winfinite-recursion 21 | +-Winline-asm 22 | +-Wmacro-redefined 23 | +-Wnew-returns-null 24 | +-Wnon-modular-include-in-framework-module 25 | +-Wnon-modular-include-in-module 26 | +-Wobjc-designated-initializers 27 | --Wobjc-literal-missing-atsign 28 | +-Wobjc-literal-conversion 29 | --Wold-style-cast # DUMMY switch 30 | +-Wold-style-cast 31 | +-Wopenmp-clauses 32 | +-Wopenmp-loop-form 33 | +-Wpass 34 | +-Wpass-analysis 35 | +-Wpass-failed 36 | +-Wpass-missed 37 | +-Wpointer-bool-conversion 38 | +-Wpragmas 39 | +-Wprofile-instr-out-of-date 40 | +-Wprofile-instr-unprofiled 41 | --Wreadonly-setter-attrs 42 | +-Wremark-backend-plugin 43 | +-Wstring-compare 44 | +-Wswitch-bool 45 | +-Wtautological-overlap-compare 46 | +-Wtautological-pointer-compare 47 | +-Wtautological-undefined-compare 48 | +-Wunavailable-declarations 49 | +-Wundefined-bool-conversion 50 | +-Wunknown-attributes 51 | +-Wunreachable-code 52 | +-Wunreachable-code-aggressive 53 | +-Wunreachable-code-break 54 | +-Wunreachable-code-loop-increment 55 | +-Wunreachable-code-return 56 | --Wunused-sanitize-argument 57 | +-Wwritable-strings 58 | -------------------------------------------------------------------------------- /clang/warnings-clang-diff-3.5-3.6.txt: -------------------------------------------------------------------------------- 1 | --Warc-abi # DUMMY switch 2 | +-Wat-protocol 3 | +-Wc++14-extensions 4 | --Wcast-qual # DUMMY switch 5 | +-Wcast-qual 6 | +-Wcstring-format-directive 7 | +-Wdelete-incomplete 8 | +-Wexplicit-initialize-call 9 | +-Wfuture-compat 10 | +-Wignored-optimization-argument 11 | +-Winconsistent-missing-override 12 | +-Wkeyword-macro 13 | +-Wmodule-build 14 | +-Wobjc-multiple-method-names 15 | +-Wpotentially-evaluated-expression 16 | +-Wproperty-access-dot-syntax 17 | +-Wproperty-attribute-mismatch 18 | +-Wreserved-id-macro 19 | +-Wsanitize-address 20 | +-Wself-move 21 | +-Wserialized-diagnostics 22 | +-Wthread-safety-negative 23 | +-Wthread-safety-reference 24 | +-Wthread-safety-verbose 25 | +-Wunevaluated-expression 26 | +-Wunused-getter-return-value 27 | +-Wunused-local-typedef 28 | +-Wunused-local-typedefs 29 | -------------------------------------------------------------------------------- /clang/warnings-clang-diff-3.6-3.7.txt: -------------------------------------------------------------------------------- 1 | +-Wexceptions 2 | +-Wflag-enum 3 | +-Wfor-loop-analysis 4 | +-Wformat-pedantic 5 | +-Wimplicitly-unsigned-literal 6 | +-WIndependentClass-attribute 7 | +-Wmove 8 | +-Wnullability 9 | +-Wnullability-completeness 10 | +-Wnullability-declspec 11 | +-Wnullable-to-nonnull-conversion 12 | +-Wobjc-protocol-qualifiers 13 | +-Wpartial-availability 14 | +-Wpessimizing-move 15 | +-Wrange-loop-analysis 16 | +-Wreceiver-is-weak # DUMMY switch 17 | +-Wredundant-move 18 | +-Wunknown-sanitizers 19 | +-Wunsupported-nan 20 | -------------------------------------------------------------------------------- /clang/warnings-clang-diff-3.7-3.8.txt: -------------------------------------------------------------------------------- 1 | +-Wbitfield-width 2 | +-Wc++11-inline-namespace 3 | +-Wc++14-binary-literal 4 | +-Wc++1z-compat 5 | +-WCL4 6 | +-Wdeprecated-attributes 7 | +-Wdouble-promotion 8 | +-Wgnu-auto-type 9 | +-Wgnu-include-next 10 | +-Wincrement-bool 11 | +-Winvalid-or-nonexistent-directory 12 | +-Wliblto 13 | +-Wmicrosoft-anon-tag 14 | +-Wmicrosoft-cast 15 | +-Wmicrosoft-charize 16 | +-Wmicrosoft-comment-paste 17 | +-Wmicrosoft-const-init 18 | +-Wmicrosoft-cpp-macro 19 | +-Wmicrosoft-default-arg-redefinition 20 | +-Wmicrosoft-end-of-file 21 | +-Wmicrosoft-enum-forward-reference 22 | +-Wmicrosoft-enum-value 23 | +-Wmicrosoft-exception-spec 24 | +-Wmicrosoft-explicit-constructor-call 25 | +-Wmicrosoft-extra-qualification 26 | +-Wmicrosoft-fixed-enum 27 | +-Wmicrosoft-flexible-array 28 | +-Wmicrosoft-goto 29 | +-Wmicrosoft-include 30 | +-Wmicrosoft-mutable-reference 31 | +-Wmicrosoft-pure-definition 32 | +-Wmicrosoft-redeclare-static 33 | +-Wmicrosoft-sealed 34 | +-Wmicrosoft-template 35 | +-Wmicrosoft-union-member-reference 36 | +-Wmicrosoft-unqualified-friend 37 | +-Wmicrosoft-using-decl 38 | +-Wmicrosoft-void-pseudo-dtor 39 | +-Wmodule-file-extension 40 | +-Wmsvc-include 41 | +-Woption-ignored 42 | +-Wregister 43 | -------------------------------------------------------------------------------- /clang/warnings-clang-diff-3.8-3.9.txt: -------------------------------------------------------------------------------- 1 | +-Wclang-cl-pch 2 | +-Wexpansion-to-defined 3 | +-Wfloat-overflow-conversion 4 | +-Wfloat-zero-conversion 5 | +-Winconsistent-dllimport 6 | +-Wopenmp-target 7 | --Wreceiver-is-weak # DUMMY switch 8 | +-Wshadow-all 9 | +-Wshadow-field-in-constructor 10 | +-Wshadow-field-in-constructor-modified 11 | +-Wundefined-func-template 12 | +-Wundefined-var-template 13 | +-Wunguarded-availability 14 | +-Wunknown-argument 15 | +-Wunsupported-cb 16 | -------------------------------------------------------------------------------- /clang/warnings-clang-diff-3.9-4.txt: -------------------------------------------------------------------------------- 1 | +-Wasm-ignored-qualifier 2 | --Wbad-array-new-length 3 | +-Wblock-capture-autoreleasing 4 | +-Wdeprecated-dynamic-exception-spec 5 | --Wdiv-by-zero # DUMMY switch 6 | +-Wdiv-by-zero 7 | --Weffc++ # DUMMY switch 8 | +-Wdynamic-exception-spec 9 | +-Weffc++ 10 | +-Wignored-pragma-intrinsic 11 | +-Wincompatible-exception-spec 12 | +-Wincompatible-function-pointer-types 13 | +-Wmax-unsigned-zero 14 | +-Wnullability-completeness-on-arrays 15 | +-Wnullability-inferred-on-nested-type 16 | +-Wopencl-unsupported-rgba 17 | +-Wprivate-module 18 | +-Wshadow-ivar 19 | +-Wshadow-uncaptured-local 20 | +-Wsigned-enum-bitfield 21 | +-Wspir-compat 22 | +-Wuser-defined-warnings 23 | -------------------------------------------------------------------------------- /clang/warnings-clang-diff-4-5.txt: -------------------------------------------------------------------------------- 1 | +-Waligned-allocation-unavailable 2 | +-Wbitfield-enum-conversion 3 | +-Wc++17-compat 4 | +-Wc++17-compat-mangling 5 | +-Wc++17-extensions 6 | +-Wc++1z-compat-mangling 7 | +-Wcoroutine 8 | +-Wcoroutine-missing-unhandled-exception 9 | +-Wcpp 10 | +-Winconsistent-missing-destructor-override 11 | +-Winvalid-ios-deployment-target 12 | +-Wnoexcept-type 13 | +-Wpragma-clang-attribute 14 | +-Wprofile-instr-missing 15 | +-Wshadow-field 16 | +-Wunguarded-availability-new 17 | +-Wunused-lambda-capture 18 | +-Wunused-template 19 | -------------------------------------------------------------------------------- /clang/warnings-clang-diff-5-6.txt: -------------------------------------------------------------------------------- 1 | +-Wauto-disable-vptr-sanitizer 2 | +-Wbinary-literal 3 | +-Wc++17-compat-pedantic 4 | +-Wc++2a-compat 5 | +-Wc++2a-compat-pedantic 6 | +-Wc++2a-extensions 7 | +-Wc++98-c++11-c++14-c++17-compat 8 | +-Wc++98-c++11-c++14-c++17-compat-pedantic 9 | +-Wc++98-c++11-compat-binary-literal 10 | +-Wenum-compare 11 | +-Wenum-compare-switch 12 | +-Wexperimental-isel 13 | +-Wmicrosoft-inaccessible-base 14 | +-Wmissing-noescape 15 | +-Wnsconsumed-mismatch 16 | +-Wnsreturns-mismatch 17 | +-Wnull-pointer-arithmetic 18 | +-Wobjc-flexible-array 19 | +-Wpragma-pack 20 | +-Wpragma-pack-suspicious-include 21 | +-Wtautological-constant-compare 22 | +-Wtautological-constant-in-range-compare 23 | +-Wtautological-type-limit-compare 24 | +-Wtautological-unsigned-enum-zero-compare 25 | +-Wtautological-unsigned-zero-compare 26 | +-Wunsupported-abs 27 | +-Wunsupported-gpopt 28 | -------------------------------------------------------------------------------- /clang/warnings-clang-diff-6-7.txt: -------------------------------------------------------------------------------- 1 | --Waligned-allocation-unavailable 2 | +-Watimport-in-framework-header 3 | +-Wc++98-compat-extra-semi 4 | +-Wdangling 5 | +-Wdangling-initializer-list 6 | +-Wdeprecated-this-capture 7 | +-Wdynamic-class-memaccess 8 | +-Wframework-include-private-from-public 9 | +-Wfunction-multiversion 10 | +-Wignored-pragma-optimize 11 | +-Wincomplete-framework-module-declaration 12 | +-Wmemset-transposed-args 13 | +-Wnontrivial-memaccess 14 | +-Wquoted-include-in-framework-header 15 | +-Wreturn-std-move 16 | +-Wreturn-std-move-in-c++11 17 | +-Wself-assign-overloaded 18 | +-Wsuspicious-bzero 19 | +-Wsuspicious-memaccess 20 | +-Wunsupported-target-opt 21 | -------------------------------------------------------------------------------- /clang/warnings-clang-diff-7-8.txt: -------------------------------------------------------------------------------- 1 | --Wat-protocol 2 | +-Wat-protocol # DUMMY switch 3 | +-Wcall-to-pure-virtual-from-ctor-dtor 4 | +-Wctu 5 | +-Wdelete-abstract-non-virtual-dtor 6 | +-Wdelete-non-abstract-non-virtual-dtor 7 | +-Wempty-init-stmt 8 | +-Wextra-semi-stmt 9 | +-Wimplicit-float-conversion 10 | +-Wimplicit-int-conversion 11 | +-Wnoderef 12 | +-Wobjc-property-assign-on-object-type 13 | +-Woverride-init 14 | -------------------------------------------------------------------------------- /clang/warnings-clang-top-level-3.2.txt: -------------------------------------------------------------------------------- 1 | -W 2 | # -Wextra 3 | # -Wignored-qualifiers 4 | # -Winitializer-overrides 5 | # -Wmissing-field-initializers 6 | # -Wmissing-method-return-type 7 | # -Wsemicolon-before-method-body 8 | # -Wsign-compare 9 | # -Wunused-parameter 10 | -W#pragma-messages 11 | -W#warnings 12 | -Wabi # DUMMY switch 13 | -Wabstract-final-class 14 | -Waddress # DUMMY switch 15 | -Waddress-of-temporary 16 | -Waggregate-return # DUMMY switch 17 | -Wall 18 | # -Wmost 19 | # -Wcast-of-sel-type 20 | # -Wchar-subscripts 21 | # -Wcomment 22 | # -Wdelete-non-virtual-dtor 23 | # -Wformat 24 | # -Wformat-extra-args 25 | # -Wformat-invalid-specifier 26 | # -Wformat-security 27 | # -Wformat-y2k 28 | # -Wformat-zero-length 29 | # -Wnonnull 30 | # -Wimplicit 31 | # -Wimplicit-function-declaration 32 | # -Wimplicit-int 33 | # -Wint-to-pointer-cast 34 | # -Wmismatched-tags 35 | # -Wmissing-braces 36 | # -Wmultichar 37 | # -Wobjc-missing-super-calls 38 | # -Woverloaded-virtual 39 | # -Wprivate-extern 40 | # -Wreorder 41 | # -Wreturn-type 42 | # -Wreturn-type-c-linkage 43 | # -Wself-assign 44 | # -Wself-assign-field 45 | # -Wsizeof-array-argument 46 | # -Wstring-plus-int 47 | # -Wtrigraphs 48 | # -Wuninitialized 49 | # -Wsometimes-uninitialized 50 | # -Wunknown-pragmas 51 | # -Wunused 52 | # -Wunused-argument 53 | # -Wunused-function 54 | # -Wunneeded-internal-declaration 55 | # -Wunused-label 56 | # -Wunused-private-field 57 | # -Wunused-value 58 | # -Wunused-comparison 59 | # -Wunused-result 60 | # -Wunused-variable 61 | # -Wvolatile-register-var 62 | # -Wparentheses 63 | # -Wbitwise-op-parentheses 64 | # -Wdangling-else 65 | # -Wlogical-op-parentheses 66 | # -Wparentheses-equality 67 | # -Wshift-op-parentheses 68 | # -Wswitch 69 | -Wambiguous-macro 70 | -Wambiguous-member-template 71 | -Warc 72 | # -Warc-non-pod-memaccess 73 | # -Warc-retain-cycles 74 | # -Warc-unsafe-retained-assign 75 | -Warc-abi # DUMMY switch 76 | -Warc-repeated-use-of-weak 77 | # -Warc-maybe-repeated-use-of-weak 78 | -Wasm 79 | # -Wasm-operand-widths 80 | -Watomic-properties 81 | # -Wcustom-atomic-properties 82 | # -Wimplicit-atomic-properties 83 | -Wattributes 84 | -Wauto-import 85 | -Wavailability 86 | -Wbad-function-cast 87 | -Wbind-to-temporary-copy 88 | # -Wc++98-compat-bind-to-temporary-copy 89 | -Wbool-conversions 90 | # -Wbool-conversion 91 | -Wbuiltin-requires-header 92 | -Wc++-compat 93 | -Wc++0x-compat 94 | # -Wc++11-compat 95 | # -Wc++11-compat-reserved-user-defined-literal 96 | # -Wc++11-narrowing 97 | -Wc++0x-extensions 98 | # -Wc++11-extensions 99 | # -Wc++11-extra-semi 100 | # -Wc++11-long-long 101 | -Wc++0x-narrowing 102 | # -Wc++11-narrowing 103 | -Wc++98-compat-pedantic 104 | # -Wc++98-compat 105 | # -Wc++98-compat-bind-to-temporary-copy 106 | # -Wc++98-compat-local-type-template-args 107 | # -Wc++98-compat-unnamed-type-template-args 108 | -Wc11-extensions 109 | -Wc99-extensions 110 | -Wcast-align 111 | -Wcast-qual # DUMMY switch 112 | -Wchar-align # DUMMY switch 113 | -Wcomments 114 | # -Wcomment 115 | -Wcompare-distinct-pointer-types 116 | -Wconditional-uninitialized 117 | -Wconversion-null 118 | # -Wnull-conversion 119 | -Wcovered-switch-default 120 | -Wctor-dtor-privacy # DUMMY switch 121 | -Wdefault-arg-special-member 122 | -Wdelegating-ctor-cycles 123 | -Wdeprecated 124 | # -Wdeprecated-declarations 125 | -Wdeprecated-implementations 126 | -Wdisabled-optimization # DUMMY switch 127 | -Wdiscard-qual # DUMMY switch 128 | -Wdiv-by-zero # DUMMY switch 129 | -Wdivision-by-zero 130 | -Wdocumentation 131 | # -Wdocumentation-deprecated-sync 132 | # -Wdocumentation-html 133 | -Wdocumentation-pedantic 134 | -Wduplicate-decl-specifier 135 | -Wduplicate-method-arg 136 | -Wduplicate-method-match 137 | -Weffc++ # DUMMY switch 138 | -Wempty-body 139 | -Wendif-labels 140 | # -Wextra-tokens 141 | -Wexit-time-destructors 142 | -Wextra-semi 143 | # -Wc++11-extra-semi 144 | -Wflexible-array-extensions 145 | -Wformat-non-iso 146 | -Wformat=2 147 | # -Wformat-nonliteral 148 | # -Wformat-security 149 | # -Wformat-security 150 | # -Wformat-y2k 151 | -Wfour-char-constants 152 | -Wgcc-compat 153 | -Wglobal-constructors 154 | -Wgnu 155 | # -Wgnu-designator 156 | # -Wvla 157 | # -Wzero-length-array 158 | -Wheader-hygiene 159 | -Wignored-attributes 160 | -Wimplicit-conversion-floating-point-to-bool 161 | -Wimplicit-fallthrough 162 | # -Wimplicit-fallthrough-per-function 163 | -Wimport # DUMMY switch 164 | -Wincompatible-pointer-types 165 | -Wincomplete-umbrella 166 | -Winit-self # DUMMY switch 167 | -Winline # DUMMY switch 168 | -Wint-conversions 169 | # -Wint-conversion 170 | -Winvalid-offsetof 171 | -Winvalid-pch # DUMMY switch 172 | -Winvalid-pp-token 173 | -Wknr-promoted-parameter 174 | -Wlambda-extensions 175 | -Wlarge-by-value-copy 176 | -Wlocal-type-template-args 177 | # -Wc++98-compat-local-type-template-args 178 | -Wlong-long 179 | # -Wc++11-long-long 180 | -Wmain 181 | -Wmain-return-type 182 | -Wmalformed-warning-check 183 | -Wmicrosoft 184 | -Wmismatched-parameter-types 185 | -Wmismatched-return-types 186 | -Wmissing-declarations 187 | -Wmissing-format-attribute # DUMMY switch 188 | -Wmissing-include-dirs # DUMMY switch 189 | -Wmodule-build 190 | -Wnarrowing 191 | # -Wc++11-narrowing 192 | -Wnested-externs # DUMMY switch 193 | -Wnon-gcc 194 | # -Wconversion 195 | # -Wbool-conversion 196 | # -Wconstant-conversion 197 | # -Wenum-conversion 198 | # -Wint-conversion 199 | # -Wliteral-conversion 200 | # -Wnon-literal-null-conversion 201 | # -Wnull-conversion 202 | # -Wshorten-64-to-32 203 | # -Wsign-conversion 204 | # -Wstring-conversion 205 | # -Wliteral-range 206 | # -Wsign-compare 207 | -Wnon-virtual-dtor 208 | -Wnonportable-cfstrings # DUMMY switch 209 | -WNSObject-attribute 210 | -Wnull-character 211 | -Wnull-dereference 212 | -Wobjc-cocoa-api 213 | # -Wobjc-redundant-api-use 214 | # -Wobjc-redundant-literal-use 215 | -Wobjc-literal-compare 216 | # -Wobjc-string-compare 217 | -Wobjc-method-access 218 | -Wobjc-noncopy-retain-block-property 219 | -Wobjc-nonunified-exceptions 220 | -Wobjc-property-implementation 221 | -Wobjc-property-no-attribute 222 | -Wobjc-protocol-method-implementation 223 | -Wobjc-readonly-with-setter-property 224 | -Wobjc-root-class 225 | -Wold-style-cast # DUMMY switch 226 | -Wold-style-definition # DUMMY switch 227 | -Wout-of-line-declaration 228 | -Wover-aligned 229 | -Woverflow # DUMMY switch 230 | -Woverlength-strings 231 | -Woverriding-method-mismatch 232 | -Wpacked 233 | -Wpadded 234 | -Wpedantic 235 | -Wpointer-arith 236 | -Wpointer-to-int-cast # DUMMY switch 237 | -Wprotocol 238 | -Wreadonly-setter-attrs 239 | -Wreceiver-expr 240 | -Wreceiver-forward-class 241 | -Wredundant-decls # DUMMY switch 242 | -Wreserved-user-defined-literal 243 | # -Wc++11-compat-reserved-user-defined-literal 244 | -Wsection 245 | -Wselector 246 | -Wsentinel 247 | -Wsequence-point # DUMMY switch 248 | -Wshadow 249 | -Wsign-promo # DUMMY switch 250 | -Wstack-protector # DUMMY switch 251 | -Wstrict-aliasing # DUMMY switch 252 | -Wstrict-aliasing=0 # DUMMY switch 253 | -Wstrict-aliasing=1 # DUMMY switch 254 | -Wstrict-aliasing=2 # DUMMY switch 255 | -Wstrict-overflow # DUMMY switch 256 | -Wstrict-overflow=0 # DUMMY switch 257 | -Wstrict-overflow=1 # DUMMY switch 258 | -Wstrict-overflow=2 # DUMMY switch 259 | -Wstrict-overflow=3 # DUMMY switch 260 | -Wstrict-overflow=4 # DUMMY switch 261 | -Wstrict-overflow=5 # DUMMY switch 262 | -Wstrict-prototypes # DUMMY switch 263 | -Wstrict-selector-match 264 | -Wstrncat-size 265 | -Wsuper-class-method-mismatch 266 | -Wswitch-default # DUMMY switch 267 | -Wswitch-enum 268 | -Wsynth # DUMMY switch 269 | -Wtautological-compare 270 | # -Wtautological-constant-out-of-range-compare 271 | -Wthread-safety 272 | # -Wthread-safety-analysis 273 | # -Wthread-safety-attributes 274 | # -Wthread-safety-precise 275 | -Wtype-limits # DUMMY switch 276 | -Wtype-safety 277 | -Wundeclared-selector 278 | -Wunicode 279 | -Wunnamed-type-template-args 280 | # -Wc++98-compat-unnamed-type-template-args 281 | -Wunused-exception-parameter 282 | -Wunused-member-function 283 | # -Wunneeded-member-function 284 | -Wused-but-marked-unused 285 | -Wuser-defined-literals 286 | -Wvariadic-macros 287 | -Wvector-conversions 288 | # -Wvector-conversion 289 | -Wvexing-parse 290 | -Wvisibility 291 | -Wwrite-strings 292 | # -Wdeprecated-writable-strings 293 | -------------------------------------------------------------------------------- /clang/warnings-clang-unique-3.2.txt: -------------------------------------------------------------------------------- 1 | -W 2 | -W#pragma-messages 3 | -W#warnings 4 | -Wabi # DUMMY switch 5 | -Wabstract-final-class 6 | -Waddress # DUMMY switch 7 | -Waddress-of-temporary 8 | -Waggregate-return # DUMMY switch 9 | -Wall 10 | -Wambiguous-macro 11 | -Wambiguous-member-template 12 | -Warc 13 | -Warc-abi # DUMMY switch 14 | -Warc-maybe-repeated-use-of-weak 15 | -Warc-non-pod-memaccess 16 | -Warc-repeated-use-of-weak 17 | -Warc-retain-cycles 18 | -Warc-unsafe-retained-assign 19 | -Wasm 20 | -Wasm-operand-widths 21 | -Watomic-properties 22 | -Wattributes 23 | -Wauto-import 24 | -Wavailability 25 | -Wbad-function-cast 26 | -Wbind-to-temporary-copy 27 | -Wbitwise-op-parentheses 28 | -Wbool-conversion 29 | -Wbool-conversions 30 | -Wbuiltin-requires-header 31 | -Wc++-compat 32 | -Wc++0x-compat 33 | -Wc++0x-extensions 34 | -Wc++0x-narrowing 35 | -Wc++11-compat 36 | -Wc++11-compat-reserved-user-defined-literal 37 | -Wc++11-extensions 38 | -Wc++11-extra-semi 39 | -Wc++11-long-long 40 | -Wc++11-narrowing 41 | -Wc++98-compat 42 | -Wc++98-compat-bind-to-temporary-copy 43 | -Wc++98-compat-local-type-template-args 44 | -Wc++98-compat-pedantic 45 | -Wc++98-compat-unnamed-type-template-args 46 | -Wc11-extensions 47 | -Wc99-extensions 48 | -Wcast-align 49 | -Wcast-of-sel-type 50 | -Wcast-qual # DUMMY switch 51 | -Wchar-align # DUMMY switch 52 | -Wchar-subscripts 53 | -Wcomment 54 | -Wcomments 55 | -Wcompare-distinct-pointer-types 56 | -Wconditional-uninitialized 57 | -Wconstant-conversion 58 | -Wconversion 59 | -Wconversion-null 60 | -Wcovered-switch-default 61 | -Wctor-dtor-privacy # DUMMY switch 62 | -Wcustom-atomic-properties 63 | -Wdangling-else 64 | -Wdefault-arg-special-member 65 | -Wdelegating-ctor-cycles 66 | -Wdelete-non-virtual-dtor 67 | -Wdeprecated 68 | -Wdeprecated-declarations 69 | -Wdeprecated-implementations 70 | -Wdeprecated-writable-strings 71 | -Wdisabled-optimization # DUMMY switch 72 | -Wdiscard-qual # DUMMY switch 73 | -Wdiv-by-zero # DUMMY switch 74 | -Wdivision-by-zero 75 | -Wdocumentation 76 | -Wdocumentation-deprecated-sync 77 | -Wdocumentation-html 78 | -Wdocumentation-pedantic 79 | -Wduplicate-decl-specifier 80 | -Wduplicate-method-arg 81 | -Wduplicate-method-match 82 | -Weffc++ # DUMMY switch 83 | -Wempty-body 84 | -Wendif-labels 85 | -Wenum-conversion 86 | -Wexit-time-destructors 87 | -Wextra 88 | -Wextra-semi 89 | -Wextra-tokens 90 | -Wflexible-array-extensions 91 | -Wformat 92 | -Wformat-extra-args 93 | -Wformat-invalid-specifier 94 | -Wformat-non-iso 95 | -Wformat-nonliteral 96 | -Wformat-security 97 | -Wformat-y2k 98 | -Wformat-zero-length 99 | -Wformat=2 100 | -Wfour-char-constants 101 | -Wgcc-compat 102 | -Wglobal-constructors 103 | -Wgnu 104 | -Wgnu-designator 105 | -Wheader-hygiene 106 | -Wignored-attributes 107 | -Wignored-qualifiers 108 | -Wimplicit 109 | -Wimplicit-atomic-properties 110 | -Wimplicit-conversion-floating-point-to-bool 111 | -Wimplicit-fallthrough 112 | -Wimplicit-fallthrough-per-function 113 | -Wimplicit-function-declaration 114 | -Wimplicit-int 115 | -Wimport # DUMMY switch 116 | -Wincompatible-pointer-types 117 | -Wincomplete-umbrella 118 | -Winit-self # DUMMY switch 119 | -Winitializer-overrides 120 | -Winline # DUMMY switch 121 | -Wint-conversion 122 | -Wint-conversions 123 | -Wint-to-pointer-cast 124 | -Winvalid-offsetof 125 | -Winvalid-pch # DUMMY switch 126 | -Winvalid-pp-token 127 | -Wknr-promoted-parameter 128 | -Wlambda-extensions 129 | -Wlarge-by-value-copy 130 | -Wliteral-conversion 131 | -Wliteral-range 132 | -Wlocal-type-template-args 133 | -Wlogical-op-parentheses 134 | -Wlong-long 135 | -Wmain 136 | -Wmain-return-type 137 | -Wmalformed-warning-check 138 | -Wmicrosoft 139 | -Wmismatched-parameter-types 140 | -Wmismatched-return-types 141 | -Wmismatched-tags 142 | -Wmissing-braces 143 | -Wmissing-declarations 144 | -Wmissing-field-initializers 145 | -Wmissing-format-attribute # DUMMY switch 146 | -Wmissing-include-dirs # DUMMY switch 147 | -Wmissing-method-return-type 148 | -Wmodule-build 149 | -Wmost 150 | -Wmultichar 151 | -Wnarrowing 152 | -Wnested-externs # DUMMY switch 153 | -Wnon-gcc 154 | -Wnon-literal-null-conversion 155 | -Wnon-virtual-dtor 156 | -Wnonnull 157 | -Wnonportable-cfstrings # DUMMY switch 158 | -WNSObject-attribute 159 | -Wnull-character 160 | -Wnull-conversion 161 | -Wnull-dereference 162 | -Wobjc-cocoa-api 163 | -Wobjc-literal-compare 164 | -Wobjc-method-access 165 | -Wobjc-missing-super-calls 166 | -Wobjc-noncopy-retain-block-property 167 | -Wobjc-nonunified-exceptions 168 | -Wobjc-property-implementation 169 | -Wobjc-property-no-attribute 170 | -Wobjc-protocol-method-implementation 171 | -Wobjc-readonly-with-setter-property 172 | -Wobjc-redundant-api-use 173 | -Wobjc-redundant-literal-use 174 | -Wobjc-root-class 175 | -Wobjc-string-compare 176 | -Wold-style-cast # DUMMY switch 177 | -Wold-style-definition # DUMMY switch 178 | -Wout-of-line-declaration 179 | -Wover-aligned 180 | -Woverflow # DUMMY switch 181 | -Woverlength-strings 182 | -Woverloaded-virtual 183 | -Woverriding-method-mismatch 184 | -Wpacked 185 | -Wpadded 186 | -Wparentheses 187 | -Wparentheses-equality 188 | -Wpedantic 189 | -Wpointer-arith 190 | -Wpointer-to-int-cast # DUMMY switch 191 | -Wprivate-extern 192 | -Wprotocol 193 | -Wreadonly-setter-attrs 194 | -Wreceiver-expr 195 | -Wreceiver-forward-class 196 | -Wredundant-decls # DUMMY switch 197 | -Wreorder 198 | -Wreserved-user-defined-literal 199 | -Wreturn-type 200 | -Wreturn-type-c-linkage 201 | -Wsection 202 | -Wselector 203 | -Wself-assign 204 | -Wself-assign-field 205 | -Wsemicolon-before-method-body 206 | -Wsentinel 207 | -Wsequence-point # DUMMY switch 208 | -Wshadow 209 | -Wshift-op-parentheses 210 | -Wshorten-64-to-32 211 | -Wsign-compare 212 | -Wsign-conversion 213 | -Wsign-promo # DUMMY switch 214 | -Wsizeof-array-argument 215 | -Wsometimes-uninitialized 216 | -Wstack-protector # DUMMY switch 217 | -Wstrict-aliasing # DUMMY switch 218 | -Wstrict-aliasing=0 # DUMMY switch 219 | -Wstrict-aliasing=1 # DUMMY switch 220 | -Wstrict-aliasing=2 # DUMMY switch 221 | -Wstrict-overflow # DUMMY switch 222 | -Wstrict-overflow=0 # DUMMY switch 223 | -Wstrict-overflow=1 # DUMMY switch 224 | -Wstrict-overflow=2 # DUMMY switch 225 | -Wstrict-overflow=3 # DUMMY switch 226 | -Wstrict-overflow=4 # DUMMY switch 227 | -Wstrict-overflow=5 # DUMMY switch 228 | -Wstrict-prototypes # DUMMY switch 229 | -Wstrict-selector-match 230 | -Wstring-conversion 231 | -Wstring-plus-int 232 | -Wstrncat-size 233 | -Wsuper-class-method-mismatch 234 | -Wswitch 235 | -Wswitch-default # DUMMY switch 236 | -Wswitch-enum 237 | -Wsynth # DUMMY switch 238 | -Wtautological-compare 239 | -Wtautological-constant-out-of-range-compare 240 | -Wthread-safety 241 | -Wthread-safety-analysis 242 | -Wthread-safety-attributes 243 | -Wthread-safety-precise 244 | -Wtrigraphs 245 | -Wtype-limits # DUMMY switch 246 | -Wtype-safety 247 | -Wundeclared-selector 248 | -Wunicode 249 | -Wuninitialized 250 | -Wunknown-pragmas 251 | -Wunnamed-type-template-args 252 | -Wunneeded-internal-declaration 253 | -Wunneeded-member-function 254 | -Wunused 255 | -Wunused-argument 256 | -Wunused-comparison 257 | -Wunused-exception-parameter 258 | -Wunused-function 259 | -Wunused-label 260 | -Wunused-member-function 261 | -Wunused-parameter 262 | -Wunused-private-field 263 | -Wunused-result 264 | -Wunused-value 265 | -Wunused-variable 266 | -Wused-but-marked-unused 267 | -Wuser-defined-literals 268 | -Wvariadic-macros 269 | -Wvector-conversion 270 | -Wvector-conversions 271 | -Wvexing-parse 272 | -Wvisibility 273 | -Wvla 274 | -Wvolatile-register-var 275 | -Wwrite-strings 276 | -Wzero-length-array 277 | -------------------------------------------------------------------------------- /clang/warnings-clang-unique-3.3.txt: -------------------------------------------------------------------------------- 1 | -W 2 | -W#pragma-messages 3 | -W#warnings 4 | -Wabi # DUMMY switch 5 | -Wabstract-final-class 6 | -Waddress # DUMMY switch 7 | -Waddress-of-temporary 8 | -Waggregate-return # DUMMY switch 9 | -Wall 10 | -Wambiguous-macro 11 | -Wambiguous-member-template 12 | -Warc 13 | -Warc-abi # DUMMY switch 14 | -Warc-maybe-repeated-use-of-weak 15 | -Warc-non-pod-memaccess 16 | -Warc-repeated-use-of-weak 17 | -Warc-retain-cycles 18 | -Warc-unsafe-retained-assign 19 | -Warray-bounds 20 | -Warray-bounds-pointer-arithmetic 21 | -Wasm 22 | -Wasm-operand-widths 23 | -Watomic-properties 24 | -Wattributes 25 | -Wauto-import 26 | -Wavailability 27 | -Wbad-array-new-length 28 | -Wbad-function-cast 29 | -Wbind-to-temporary-copy 30 | -Wbitfield-constant-conversion 31 | -Wbitwise-op-parentheses 32 | -Wbool-conversion 33 | -Wbool-conversions 34 | -Wbuiltin-macro-redefined 35 | -Wbuiltin-requires-header 36 | -Wc++-compat 37 | -Wc++0x-compat 38 | -Wc++0x-extensions 39 | -Wc++0x-narrowing 40 | -Wc++11-compat 41 | -Wc++11-compat-pedantic 42 | -Wc++11-compat-reserved-user-defined-literal 43 | -Wc++11-extensions 44 | -Wc++11-extra-semi 45 | -Wc++11-long-long 46 | -Wc++11-narrowing 47 | -Wc++1y-extensions 48 | -Wc++98-compat 49 | -Wc++98-compat-bind-to-temporary-copy 50 | -Wc++98-compat-local-type-template-args 51 | -Wc++98-compat-pedantic 52 | -Wc++98-compat-unnamed-type-template-args 53 | -Wc11-extensions 54 | -Wc99-compat 55 | -Wc99-extensions 56 | -Wcast-align 57 | -Wcast-of-sel-type 58 | -Wcast-qual # DUMMY switch 59 | -Wchar-align # DUMMY switch 60 | -Wchar-subscripts 61 | -Wcomment 62 | -Wcomments 63 | -Wcompare-distinct-pointer-types 64 | -Wconditional-uninitialized 65 | -Wconfig-macros 66 | -Wconstant-conversion 67 | -Wconversion 68 | -Wconversion-null 69 | -Wcovered-switch-default 70 | -Wctor-dtor-privacy # DUMMY switch 71 | -Wcustom-atomic-properties 72 | -Wcxx98-cxx11-compat 73 | -Wcxx98-cxx11-compat-pedantic 74 | -Wdangling-else 75 | -Wdangling-field 76 | -Wdelegating-ctor-cycles 77 | -Wdelete-non-virtual-dtor 78 | -Wdeprecated 79 | -Wdeprecated-declarations 80 | -Wdeprecated-implementations 81 | -Wdeprecated-objc-isa-usage 82 | -Wdeprecated-writable-strings 83 | -Wdisabled-optimization # DUMMY switch 84 | -Wdiscard-qual # DUMMY switch 85 | -Wdistributed-object-modifiers 86 | -Wdiv-by-zero # DUMMY switch 87 | -Wdivision-by-zero 88 | -Wdocumentation 89 | -Wdocumentation-deprecated-sync 90 | -Wdocumentation-html 91 | -Wdocumentation-pedantic 92 | -Wdocumentation-unknown-command 93 | -Wduplicate-decl-specifier 94 | -Wduplicate-method-arg 95 | -Wduplicate-method-match 96 | -Weffc++ # DUMMY switch 97 | -Wempty-body 98 | -Wendif-labels 99 | -Wenum-conversion 100 | -Wexit-time-destructors 101 | -Wextra 102 | -Wextra-semi 103 | -Wextra-tokens 104 | -Wflexible-array-extensions 105 | -Wformat 106 | -Wformat-extra-args 107 | -Wformat-invalid-specifier 108 | -Wformat-non-iso 109 | -Wformat-nonliteral 110 | -Wformat-security 111 | -Wformat-y2k 112 | -Wformat-zero-length 113 | -Wformat=2 114 | -Wfour-char-constants 115 | -Wgcc-compat 116 | -Wglobal-constructors 117 | -Wgnu 118 | -Wgnu-designator 119 | -Wgnu-static-float-init 120 | -Wheader-hygiene 121 | -Wignored-attributes 122 | -Wignored-qualifiers 123 | -Wimplicit 124 | -Wimplicit-atomic-properties 125 | -Wimplicit-conversion-floating-point-to-bool 126 | -Wimplicit-fallthrough 127 | -Wimplicit-fallthrough-per-function 128 | -Wimplicit-function-declaration 129 | -Wimplicit-int 130 | -Wimport # DUMMY switch 131 | -Wincompatible-pointer-types 132 | -Wincompatible-pointer-types-discards-qualifiers 133 | -Wincomplete-umbrella 134 | -Winit-self # DUMMY switch 135 | -Winitializer-overrides 136 | -Winline # DUMMY switch 137 | -Wint-conversion 138 | -Wint-conversions 139 | -Wint-to-pointer-cast 140 | -Winvalid-noreturn 141 | -Winvalid-offsetof 142 | -Winvalid-pch # DUMMY switch 143 | -Winvalid-pp-token 144 | -Winvalid-source-encoding 145 | -Wknr-promoted-parameter 146 | -Wlarge-by-value-copy 147 | -Wliteral-conversion 148 | -Wliteral-range 149 | -Wlocal-type-template-args 150 | -Wlogical-op-parentheses 151 | -Wlong-long 152 | -Wmain 153 | -Wmain-return-type 154 | -Wmalformed-warning-check 155 | -Wmethod-signatures 156 | -Wmicrosoft 157 | -Wmismatched-parameter-types 158 | -Wmismatched-return-types 159 | -Wmismatched-tags 160 | -Wmissing-braces 161 | -Wmissing-declarations 162 | -Wmissing-field-initializers 163 | -Wmissing-format-attribute # DUMMY switch 164 | -Wmissing-include-dirs # DUMMY switch 165 | -Wmissing-method-return-type 166 | -Wmissing-noreturn 167 | -Wmodule-conflict 168 | -Wmost 169 | -Wmultichar 170 | -Wnarrowing 171 | -Wnested-externs # DUMMY switch 172 | -Wnon-gcc 173 | -Wnon-literal-null-conversion 174 | -Wnon-pod-varargs 175 | -Wnon-virtual-dtor 176 | -Wnonnull 177 | -Wnonportable-cfstrings # DUMMY switch 178 | -WNSObject-attribute 179 | -Wnull-arithmetic 180 | -Wnull-character 181 | -Wnull-conversion 182 | -Wnull-dereference 183 | -Wobjc-cocoa-api 184 | -Wobjc-literal-compare 185 | -Wobjc-method-access 186 | -Wobjc-missing-super-calls 187 | -Wobjc-noncopy-retain-block-property 188 | -Wobjc-nonunified-exceptions 189 | -Wobjc-property-implementation 190 | -Wobjc-property-no-attribute 191 | -Wobjc-property-synthesis 192 | -Wobjc-protocol-method-implementation 193 | -Wobjc-readonly-with-setter-property 194 | -Wobjc-redundant-api-use 195 | -Wobjc-redundant-literal-use 196 | -Wobjc-root-class 197 | -Wobjc-string-compare 198 | -Wold-style-cast # DUMMY switch 199 | -Wold-style-definition # DUMMY switch 200 | -Wout-of-line-declaration 201 | -Wover-aligned 202 | -Woverflow # DUMMY switch 203 | -Woverlength-strings 204 | -Woverloaded-shift-op-parentheses 205 | -Woverloaded-virtual 206 | -Woverriding-method-mismatch 207 | -Wpacked 208 | -Wpadded 209 | -Wparentheses 210 | -Wparentheses-equality 211 | -Wpedantic 212 | -Wpointer-arith 213 | -Wpointer-to-int-cast # DUMMY switch 214 | -Wprivate-extern 215 | -Wprotocol 216 | -Wreadonly-setter-attrs 217 | -Wreceiver-expr 218 | -Wreceiver-forward-class 219 | -Wredundant-decls # DUMMY switch 220 | -Wreinterpret-base-class 221 | -Wreorder 222 | -Wreserved-user-defined-literal 223 | -Wreturn-stack-address 224 | -Wreturn-type 225 | -Wreturn-type-c-linkage 226 | -Wsection 227 | -Wselector 228 | -Wself-assign 229 | -Wself-assign-field 230 | -Wsemicolon-before-method-body 231 | -Wsentinel 232 | -Wsequence-point 233 | -Wshadow 234 | -Wshift-op-parentheses 235 | -Wshorten-64-to-32 236 | -Wsign-compare 237 | -Wsign-conversion 238 | -Wsign-promo # DUMMY switch 239 | -Wsizeof-array-argument 240 | -Wsizeof-array-decay 241 | -Wsizeof-pointer-memaccess 242 | -Wsometimes-uninitialized 243 | -Wsource-uses-openmp 244 | -Wstack-protector # DUMMY switch 245 | -Wstatic-float-init 246 | -Wstatic-in-inline 247 | -Wstatic-local-in-inline 248 | -Wstatic-self-init 249 | -Wstrict-aliasing # DUMMY switch 250 | -Wstrict-aliasing=0 # DUMMY switch 251 | -Wstrict-aliasing=1 # DUMMY switch 252 | -Wstrict-aliasing=2 # DUMMY switch 253 | -Wstrict-overflow # DUMMY switch 254 | -Wstrict-overflow=0 # DUMMY switch 255 | -Wstrict-overflow=1 # DUMMY switch 256 | -Wstrict-overflow=2 # DUMMY switch 257 | -Wstrict-overflow=3 # DUMMY switch 258 | -Wstrict-overflow=4 # DUMMY switch 259 | -Wstrict-overflow=5 # DUMMY switch 260 | -Wstrict-prototypes # DUMMY switch 261 | -Wstrict-selector-match 262 | -Wstring-conversion 263 | -Wstring-plus-int 264 | -Wstrncat-size 265 | -Wsuper-class-method-mismatch 266 | -Wswitch 267 | -Wswitch-default # DUMMY switch 268 | -Wswitch-enum 269 | -Wsynth # DUMMY switch 270 | -Wtautological-compare 271 | -Wtautological-constant-out-of-range-compare 272 | -Wthread-safety 273 | -Wthread-safety-analysis 274 | -Wthread-safety-attributes 275 | -Wthread-safety-beta 276 | -Wthread-safety-precise 277 | -Wtrigraphs 278 | -Wtype-limits # DUMMY switch 279 | -Wtype-safety 280 | -Wundeclared-selector 281 | -Wundefined-reinterpret-cast 282 | -Wunicode 283 | -Wuninitialized 284 | -Wunknown-pragmas 285 | -Wunknown-warning-option 286 | -Wunnamed-type-template-args 287 | -Wunneeded-internal-declaration 288 | -Wunneeded-member-function 289 | -Wunsequenced 290 | -Wunused 291 | -Wunused-argument 292 | -Wunused-command-line-argument 293 | -Wunused-comparison 294 | -Wunused-exception-parameter 295 | -Wunused-function 296 | -Wunused-label 297 | -Wunused-member-function 298 | -Wunused-parameter 299 | -Wunused-private-field 300 | -Wunused-result 301 | -Wunused-sanitize-argument 302 | -Wunused-value 303 | -Wunused-variable 304 | -Wused-but-marked-unused 305 | -Wuser-defined-literals 306 | -Wvariadic-macros 307 | -Wvector-conversion 308 | -Wvector-conversions 309 | -Wvexing-parse 310 | -Wvisibility 311 | -Wvla 312 | -Wvla-extension 313 | -Wvolatile-register-var 314 | -Wwrite-strings 315 | -Wzero-length-array 316 | -------------------------------------------------------------------------------- /gcc/meld-gcc-5-6-wall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Barro/compiler-warnings/f494cb8b3db51f66cc417ece8754c43b728859ef/gcc/meld-gcc-5-6-wall.png -------------------------------------------------------------------------------- /gcc/warnings-gcc-3.2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Barro/compiler-warnings/f494cb8b3db51f66cc417ece8754c43b728859ef/gcc/warnings-gcc-3.2.txt -------------------------------------------------------------------------------- /gcc/warnings-gcc-3.4.txt: -------------------------------------------------------------------------------- 1 | --all-warnings = -Wall 2 | --extra-warnings = -Wextra 3 | --pedantic = -pedantic 4 | -pedantic 5 | -W = -Wextra 6 | -Wabi 7 | -Waggregate-return 8 | -Wall 9 | -Wbad-function-cast 10 | -Wcast-align 11 | -Wcast-qual 12 | -Wchar-subscripts 13 | -Wcomment 14 | -Wcomments 15 | -Wconversion 16 | -Wctor-dtor-privacy 17 | -Wdeclaration-after-statement 18 | -Wdeprecated 19 | -Wdeprecated-declarations 20 | -Wdisabled-optimization 21 | -Wdiv-by-zero 22 | -Weffc++ 23 | -Wendif-labels 24 | -Werror-implicit-function-declaration 25 | -Wextra 26 | -Wfloat-equal 27 | -Wformat 28 | -Wformat-extra-args 29 | -Wformat-nonliteral 30 | -Wformat-security 31 | -Wformat-y2k 32 | -Wformat-zero-length 33 | -Wformat= 34 | -Wimplicit 35 | -Wimplicit-function-declaration 36 | -Wimplicit-int 37 | -Wimport 38 | -Winit-self 39 | -Winline 40 | -Winvalid-offsetof 41 | -Winvalid-pch 42 | -Wlarger-than- 43 | -Wlong-long 44 | -Wmain 45 | -Wmissing-braces 46 | -Wmissing-declarations 47 | -Wmissing-format-attribute 48 | -Wmissing-noreturn 49 | -Wmissing-prototypes 50 | -Wmultichar 51 | -Wnested-externs 52 | -Wnon-template-friend 53 | -Wnon-virtual-dtor 54 | -Wnonnull 55 | -Wold-style-cast 56 | -Wold-style-definition 57 | -Woverloaded-virtual 58 | -Wpacked 59 | -Wpadded 60 | -Wparentheses 61 | -Wpmf-conversions 62 | -Wpointer-arith 63 | -Wprotocol 64 | -Wredundant-decls 65 | -Wreorder 66 | -Wreturn-type 67 | -Wselector 68 | -Wsequence-point 69 | -Wshadow 70 | -Wsign-compare 71 | -Wsign-promo 72 | -Wstrict-aliasing 73 | -Wstrict-prototypes 74 | -Wswitch 75 | -Wswitch-default 76 | -Wswitch-enum 77 | -Wsynth 78 | -Wsystem-headers 79 | -Wtraditional 80 | -Wtrigraphs 81 | -Wundeclared-selector 82 | -Wundef 83 | -Wuninitialized 84 | -Wunknown-pragmas 85 | -Wunreachable-code 86 | -Wunused 87 | -Wunused-function 88 | -Wunused-label 89 | -Wunused-macros 90 | -Wunused-parameter 91 | -Wunused-value 92 | -Wunused-variable 93 | -Wwrite-strings 94 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-4.0.txt: -------------------------------------------------------------------------------- 1 | --all-warnings = -Wall 2 | --extra-warnings = -Wextra 3 | --pedantic = -pedantic 4 | -pedantic 5 | -W = -Wextra 6 | -Wabi 7 | -Waggregate-return 8 | -Wall 9 | -Wbad-function-cast 10 | -Wcast-align 11 | -Wcast-qual 12 | -Wchar-subscripts 13 | -Wcomment 14 | -Wcomments 15 | -Wconversion 16 | -Wctor-dtor-privacy 17 | -Wdeclaration-after-statement 18 | -Wdeprecated 19 | -Wdeprecated-declarations 20 | -Wdisabled-optimization 21 | -Wdiv-by-zero 22 | -Weffc++ 23 | -Wendif-labels 24 | -Werror-implicit-function-declaration 25 | -Wextra 26 | -Wfloat-equal 27 | -Wformat 28 | -Wformat-extra-args 29 | -Wformat-nonliteral 30 | -Wformat-security 31 | -Wformat-y2k 32 | -Wformat-zero-length 33 | -Wformat= 34 | -Wimplicit 35 | -Wimplicit-function-declaration 36 | -Wimplicit-int 37 | -Wimport 38 | -Winit-self 39 | -Winline 40 | -Winvalid-offsetof 41 | -Winvalid-pch 42 | -Wlarger-than- 43 | -Wlong-long 44 | -Wmain 45 | -Wmissing-braces 46 | -Wmissing-declarations 47 | -Wmissing-field-initializers 48 | -Wmissing-format-attribute 49 | -Wmissing-include-dirs 50 | -Wmissing-noreturn 51 | -Wmissing-prototypes 52 | -Wmultichar 53 | -Wnested-externs 54 | -Wnon-template-friend 55 | -Wnon-virtual-dtor 56 | -Wnonnull 57 | -Wold-style-cast 58 | -Wold-style-definition 59 | -Woverloaded-virtual 60 | -Wpacked 61 | -Wpadded 62 | -Wparentheses 63 | -Wpmf-conversions 64 | -Wpointer-arith 65 | -Wpointer-sign 66 | -Wprotocol 67 | -Wredundant-decls 68 | -Wreorder 69 | -Wreturn-type 70 | -Wselector 71 | -Wsequence-point 72 | -Wshadow 73 | -Wsign-compare 74 | -Wsign-promo 75 | -Wstrict-aliasing 76 | -Wstrict-aliasing= 77 | -Wstrict-null-sentinel 78 | -Wstrict-prototypes 79 | -Wswitch 80 | -Wswitch-default 81 | -Wswitch-enum 82 | -Wsynth 83 | -Wsystem-headers 84 | -Wtraditional 85 | -Wtrigraphs 86 | -Wundeclared-selector 87 | -Wundef 88 | -Wuninitialized 89 | -Wunknown-pragmas 90 | -Wunreachable-code 91 | -Wunused 92 | -Wunused-function 93 | -Wunused-label 94 | -Wunused-macros 95 | -Wunused-parameter 96 | -Wunused-value 97 | -Wunused-variable 98 | -Wvariadic-macros 99 | -Wwrite-strings 100 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-4.1.txt: -------------------------------------------------------------------------------- 1 | --all-warnings = -Wall 2 | --extra-warnings = -Wextra 3 | --pedantic = -pedantic 4 | -pedantic 5 | -W = -Wextra 6 | -Wabi 7 | -Waggregate-return 8 | -Wall 9 | -Wassign-intercept 10 | -Wattributes 11 | -Wbad-function-cast 12 | -Wc++-compat 13 | -Wcast-align 14 | -Wcast-qual 15 | -Wchar-subscripts 16 | -Wcomment 17 | -Wcomments 18 | -Wconversion 19 | -Wctor-dtor-privacy 20 | -Wdeclaration-after-statement 21 | -Wdeprecated 22 | -Wdeprecated-declarations 23 | -Wdisabled-optimization 24 | -Wdiv-by-zero 25 | -Weffc++ 26 | -Wendif-labels 27 | -Werror-implicit-function-declaration 28 | -Wextra 29 | -Wfloat-equal 30 | -Wformat 31 | -Wformat-extra-args 32 | -Wformat-nonliteral 33 | -Wformat-security 34 | -Wformat-y2k 35 | -Wformat-zero-length 36 | -Wformat= 37 | -Wimplicit 38 | -Wimplicit-function-declaration 39 | -Wimplicit-int 40 | -Wimport 41 | -Winit-self 42 | -Winline 43 | -Wint-to-pointer-cast 44 | -Winvalid-offsetof 45 | -Winvalid-pch 46 | -Wlarger-than- 47 | -Wlong-long 48 | -Wmain 49 | -Wmissing-braces 50 | -Wmissing-declarations 51 | -Wmissing-field-initializers 52 | -Wmissing-format-attribute 53 | -Wmissing-include-dirs 54 | -Wmissing-noreturn 55 | -Wmissing-prototypes 56 | -Wmultichar 57 | -Wnested-externs 58 | -Wnon-template-friend 59 | -Wnon-virtual-dtor 60 | -Wnonnull 61 | -Wnormalized= 62 | -Wold-style-cast 63 | -Wold-style-definition 64 | -Woverloaded-virtual 65 | -Wpacked 66 | -Wpadded 67 | -Wparentheses 68 | -Wpmf-conversions 69 | -Wpointer-arith 70 | -Wpointer-sign 71 | -Wpointer-to-int-cast 72 | -Wpragmas 73 | -Wprotocol 74 | -Wredundant-decls 75 | -Wreorder 76 | -Wreturn-type 77 | -Wselector 78 | -Wsequence-point 79 | -Wshadow 80 | -Wsign-compare 81 | -Wsign-promo 82 | -Wstack-protector 83 | -Wstrict-aliasing 84 | -Wstrict-aliasing= 85 | -Wstrict-null-sentinel 86 | -Wstrict-prototypes 87 | -Wstrict-selector-match 88 | -Wswitch 89 | -Wswitch-default 90 | -Wswitch-enum 91 | -Wsynth 92 | -Wsystem-headers 93 | -Wtraditional 94 | -Wtrigraphs 95 | -Wundeclared-selector 96 | -Wundef 97 | -Wuninitialized 98 | -Wunknown-pragmas 99 | -Wunreachable-code 100 | -Wunsafe-loop-optimizations 101 | -Wunused 102 | -Wunused-function 103 | -Wunused-label 104 | -Wunused-macros 105 | -Wunused-parameter 106 | -Wunused-value 107 | -Wunused-variable 108 | -Wvariadic-macros 109 | -Wvolatile-register-var 110 | -Wwrite-strings 111 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-4.2.txt: -------------------------------------------------------------------------------- 1 | --all-warnings = -Wall 2 | --extra-warnings = -Wextra 3 | --pedantic = -pedantic 4 | -pedantic 5 | -W = -Wextra 6 | -Wabi 7 | -Waddress 8 | -Waggregate-return 9 | -Wall 10 | -Wassign-intercept 11 | -Wattributes 12 | -Wbad-function-cast 13 | -Wc++-compat 14 | -Wcast-align 15 | -Wcast-qual 16 | -Wchar-subscripts 17 | -Wcomment 18 | -Wcomments 19 | -Wconversion 20 | -Wctor-dtor-privacy 21 | -Wdeclaration-after-statement 22 | -Wdeprecated 23 | -Wdeprecated-declarations 24 | -Wdisabled-optimization 25 | -Wdiv-by-zero 26 | -Weffc++ 27 | -Wendif-labels 28 | -Werror-implicit-function-declaration 29 | -Wextra 30 | -Wfloat-equal 31 | -Wformat 32 | -Wformat-extra-args 33 | -Wformat-nonliteral 34 | -Wformat-security 35 | -Wformat-y2k 36 | -Wformat-zero-length 37 | -Wformat= 38 | -Wimplicit 39 | -Wimplicit-function-declaration 40 | -Wimplicit-int 41 | -Wimport 42 | -Winit-self 43 | -Winline 44 | -Wint-to-pointer-cast 45 | -Winvalid-offsetof 46 | -Winvalid-pch 47 | -Wlarger-than- 48 | -Wlong-long 49 | -Wmain 50 | -Wmissing-braces 51 | -Wmissing-declarations 52 | -Wmissing-field-initializers 53 | -Wmissing-format-attribute 54 | -Wmissing-include-dirs 55 | -Wmissing-noreturn 56 | -Wmissing-prototypes 57 | -Wmultichar 58 | -Wnested-externs 59 | -Wnon-template-friend 60 | -Wnon-virtual-dtor 61 | -Wnonnull 62 | -Wnormalized= 63 | -Wold-style-cast 64 | -Wold-style-definition 65 | -Woverflow 66 | -Woverlength-strings 67 | -Woverloaded-virtual 68 | -Woverride-init 69 | -Wpacked 70 | -Wpadded 71 | -Wparentheses 72 | -Wpmf-conversions 73 | -Wpointer-arith 74 | -Wpointer-sign 75 | -Wpointer-to-int-cast 76 | -Wpragmas 77 | -Wprotocol 78 | -Wredundant-decls 79 | -Wreorder 80 | -Wreturn-type 81 | -Wselector 82 | -Wsequence-point 83 | -Wshadow 84 | -Wsign-compare 85 | -Wsign-promo 86 | -Wstack-protector 87 | -Wstrict-aliasing 88 | -Wstrict-aliasing= 89 | -Wstrict-null-sentinel 90 | -Wstrict-overflow 91 | -Wstrict-overflow= 92 | -Wstrict-prototypes 93 | -Wstrict-selector-match 94 | -Wswitch 95 | -Wswitch-default 96 | -Wswitch-enum 97 | -Wsynth 98 | -Wsystem-headers 99 | -Wtraditional 100 | -Wtrigraphs 101 | -Wundeclared-selector 102 | -Wundef 103 | -Wuninitialized 104 | -Wunknown-pragmas 105 | -Wunreachable-code 106 | -Wunsafe-loop-optimizations 107 | -Wunused 108 | -Wunused-function 109 | -Wunused-label 110 | -Wunused-macros 111 | -Wunused-parameter 112 | -Wunused-value 113 | -Wunused-variable 114 | -Wvariadic-macros 115 | -Wvolatile-register-var 116 | -Wwrite-strings 117 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-4.3.txt: -------------------------------------------------------------------------------- 1 | --all-warnings = -Wall 2 | --extra-warnings = -Wextra 3 | --pedantic = -pedantic 4 | -pedantic 5 | -W = -Wextra 6 | -Wabi 7 | -Waddress 8 | -Waggregate-return 9 | -Wall 10 | -Warray-bounds 11 | -Wassign-intercept 12 | -Wattributes 13 | -Wbad-function-cast 14 | -Wc++-compat 15 | -Wc++0x-compat 16 | -Wcast-align 17 | -Wcast-qual 18 | -Wchar-subscripts 19 | -Wclobbered 20 | -Wcomment 21 | -Wcomments 22 | -Wconversion 23 | -Wcoverage-mismatch 24 | -Wctor-dtor-privacy 25 | -Wdeclaration-after-statement 26 | -Wdeprecated 27 | -Wdeprecated-declarations 28 | -Wdisabled-optimization 29 | -Wdiv-by-zero 30 | -Weffc++ 31 | -Wempty-body 32 | -Wendif-labels 33 | -Werror-implicit-function-declaration 34 | -Wextra 35 | -Wfloat-equal 36 | -Wformat 37 | -Wformat-contains-nul 38 | -Wformat-extra-args 39 | -Wformat-nonliteral 40 | -Wformat-security 41 | -Wformat-y2k 42 | -Wformat-zero-length 43 | -Wformat= 44 | -Wignored-qualifiers 45 | -Wimplicit 46 | -Wimplicit-function-declaration 47 | -Wimplicit-int 48 | -Wimport 49 | -Winit-self 50 | -Winline 51 | -Wint-to-pointer-cast 52 | -Winvalid-offsetof 53 | -Winvalid-pch 54 | -Wlarger-than- 55 | -Wlogical-op 56 | -Wlong-long 57 | -Wmain 58 | -Wmissing-braces 59 | -Wmissing-declarations 60 | -Wmissing-field-initializers 61 | -Wmissing-format-attribute 62 | -Wmissing-include-dirs 63 | -Wmissing-noreturn 64 | -Wmissing-parameter-type 65 | -Wmissing-prototypes 66 | -Wmultichar 67 | -Wnested-externs 68 | -Wnon-template-friend 69 | -Wnon-virtual-dtor 70 | -Wnonnull 71 | -Wnormalized= 72 | -Wold-style-cast 73 | -Wold-style-declaration 74 | -Wold-style-definition 75 | -Woverflow 76 | -Woverlength-strings 77 | -Woverloaded-virtual 78 | -Woverride-init 79 | -Wpacked 80 | -Wpadded 81 | -Wparentheses 82 | -Wpmf-conversions 83 | -Wpointer-arith 84 | -Wpointer-sign 85 | -Wpointer-to-int-cast 86 | -Wpragmas 87 | -Wprotocol 88 | -Wredundant-decls 89 | -Wreorder 90 | -Wreturn-type 91 | -Wselector 92 | -Wsequence-point 93 | -Wshadow 94 | -Wsign-compare 95 | -Wsign-conversion 96 | -Wsign-promo 97 | -Wstack-protector 98 | -Wstrict-aliasing 99 | -Wstrict-aliasing= 100 | -Wstrict-null-sentinel 101 | -Wstrict-overflow 102 | -Wstrict-overflow= 103 | -Wstrict-prototypes 104 | -Wstrict-selector-match 105 | -Wswitch 106 | -Wswitch-default 107 | -Wswitch-enum 108 | -Wsynth 109 | -Wsystem-headers 110 | -Wtraditional 111 | -Wtraditional-conversion 112 | -Wtrigraphs 113 | -Wtype-limits 114 | -Wundeclared-selector 115 | -Wundef 116 | -Wuninitialized 117 | -Wunknown-pragmas 118 | -Wunreachable-code 119 | -Wunsafe-loop-optimizations 120 | -Wunused 121 | -Wunused-function 122 | -Wunused-label 123 | -Wunused-macros 124 | -Wunused-parameter 125 | -Wunused-value 126 | -Wunused-variable 127 | -Wvariadic-macros 128 | -Wvla 129 | -Wvolatile-register-var 130 | -Wwrite-strings 131 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-4.4.txt: -------------------------------------------------------------------------------- 1 | --all-warnings = -Wall 2 | --extra-warnings = -Wextra 3 | --pedantic = -pedantic 4 | -pedantic 5 | -W = -Wextra 6 | -Wabi 7 | -Waddress 8 | -Waggregate-return 9 | -Wall 10 | -Warray-bounds 11 | -Wassign-intercept 12 | -Wattributes 13 | -Wbad-function-cast 14 | -Wbuiltin-macro-redefined 15 | -Wc++-compat 16 | -Wc++0x-compat 17 | -Wcast-align 18 | -Wcast-qual 19 | -Wchar-subscripts 20 | -Wclobbered 21 | -Wcomment 22 | -Wcomments 23 | -Wconversion 24 | -Wcoverage-mismatch 25 | -Wctor-dtor-privacy 26 | -Wdeclaration-after-statement 27 | -Wdeprecated 28 | -Wdeprecated-declarations 29 | -Wdisabled-optimization 30 | -Wdiv-by-zero 31 | -Weffc++ 32 | -Wempty-body 33 | -Wendif-labels 34 | -Wenum-compare 35 | -Werror-implicit-function-declaration 36 | -Wextra 37 | -Wfloat-equal 38 | -Wformat 39 | -Wformat-contains-nul 40 | -Wformat-extra-args 41 | -Wformat-nonliteral 42 | -Wformat-security 43 | -Wformat-y2k 44 | -Wformat-zero-length 45 | -Wformat= 46 | -Wframe-larger-than= 47 | -Wignored-qualifiers 48 | -Wimplicit 49 | -Wimplicit-function-declaration 50 | -Wimplicit-int 51 | -Wimport 52 | -Winit-self 53 | -Winline 54 | -Wint-to-pointer-cast 55 | -Winvalid-offsetof 56 | -Winvalid-pch 57 | -Wlarger-than- 58 | -Wlarger-than= 59 | -Wlogical-op 60 | -Wlong-long 61 | -Wmain 62 | -Wmissing-braces 63 | -Wmissing-declarations 64 | -Wmissing-field-initializers 65 | -Wmissing-format-attribute 66 | -Wmissing-include-dirs 67 | -Wmissing-noreturn 68 | -Wmissing-parameter-type 69 | -Wmissing-prototypes 70 | -Wmudflap 71 | -Wmultichar 72 | -Wnested-externs 73 | -Wnon-template-friend 74 | -Wnon-virtual-dtor 75 | -Wnonnull 76 | -Wnormalized= 77 | -Wold-style-cast 78 | -Wold-style-declaration 79 | -Wold-style-definition 80 | -Woverflow 81 | -Woverlength-strings 82 | -Woverloaded-virtual 83 | -Woverride-init 84 | -Wpacked 85 | -Wpacked-bitfield-compat 86 | -Wpadded 87 | -Wparentheses 88 | -Wpmf-conversions 89 | -Wpointer-arith 90 | -Wpointer-sign 91 | -Wpointer-to-int-cast 92 | -Wpragmas 93 | -Wprotocol 94 | -Wpsabi 95 | -Wredundant-decls 96 | -Wreorder 97 | -Wreturn-type 98 | -Wselector 99 | -Wsequence-point 100 | -Wshadow 101 | -Wsign-compare 102 | -Wsign-conversion 103 | -Wsign-promo 104 | -Wstack-protector 105 | -Wstrict-aliasing 106 | -Wstrict-aliasing= 107 | -Wstrict-null-sentinel 108 | -Wstrict-overflow 109 | -Wstrict-overflow= 110 | -Wstrict-prototypes 111 | -Wstrict-selector-match 112 | -Wswitch 113 | -Wswitch-default 114 | -Wswitch-enum 115 | -Wsync-nand 116 | -Wsynth 117 | -Wsystem-headers 118 | -Wtraditional 119 | -Wtraditional-conversion 120 | -Wtrigraphs 121 | -Wtype-limits 122 | -Wundeclared-selector 123 | -Wundef 124 | -Wuninitialized 125 | -Wunknown-pragmas 126 | -Wunreachable-code 127 | -Wunsafe-loop-optimizations 128 | -Wunused 129 | -Wunused-function 130 | -Wunused-label 131 | -Wunused-macros 132 | -Wunused-parameter 133 | -Wunused-value 134 | -Wunused-variable 135 | -Wvariadic-macros 136 | -Wvla 137 | -Wvolatile-register-var 138 | -Wwrite-strings 139 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-4.5.txt: -------------------------------------------------------------------------------- 1 | --all-warnings = -Wall 2 | --extra-warnings = -Wextra 3 | --pedantic = -pedantic 4 | -pedantic 5 | -W = -Wextra 6 | -Wabi 7 | -Waddress 8 | -Waggregate-return 9 | -Wall 10 | -Warray-bounds 11 | -Wassign-intercept 12 | -Wattributes 13 | -Wbad-function-cast 14 | -Wbuiltin-macro-redefined 15 | -Wc++-compat 16 | -Wc++0x-compat 17 | -Wcast-align 18 | -Wcast-qual 19 | -Wchar-subscripts 20 | -Wclobbered 21 | -Wcomment 22 | -Wcomments 23 | -Wconversion 24 | -Wconversion-null 25 | -Wcoverage-mismatch 26 | -Wctor-dtor-privacy 27 | -Wdeclaration-after-statement 28 | -Wdeprecated 29 | -Wdeprecated-declarations 30 | -Wdisabled-optimization 31 | -Wdiv-by-zero 32 | -Weffc++ 33 | -Wempty-body 34 | -Wendif-labels 35 | -Wenum-compare 36 | -Werror-implicit-function-declaration 37 | -Wextra 38 | -Wfloat-equal 39 | -Wformat 40 | -Wformat-contains-nul 41 | -Wformat-extra-args 42 | -Wformat-nonliteral 43 | -Wformat-security 44 | -Wformat-y2k 45 | -Wformat-zero-length 46 | -Wformat= 47 | -Wframe-larger-than= 48 | -Wignored-qualifiers 49 | -Wimplicit 50 | -Wimplicit-function-declaration 51 | -Wimplicit-int 52 | -Wimport 53 | -Winit-self 54 | -Winline 55 | -Wint-to-pointer-cast 56 | -Winvalid-offsetof 57 | -Winvalid-pch 58 | -Wjump-misses-init 59 | -Wlarger-than- 60 | -Wlarger-than= 61 | -Wlogical-op 62 | -Wlong-long 63 | -Wmain 64 | -Wmissing-braces 65 | -Wmissing-declarations 66 | -Wmissing-field-initializers 67 | -Wmissing-format-attribute 68 | -Wmissing-include-dirs 69 | -Wmissing-noreturn 70 | -Wmissing-parameter-type 71 | -Wmissing-prototypes 72 | -Wmudflap 73 | -Wmultichar 74 | -Wnested-externs 75 | -Wnon-template-friend 76 | -Wnon-virtual-dtor 77 | -Wnonnull 78 | -Wnormalized= 79 | -Wold-style-cast 80 | -Wold-style-declaration 81 | -Wold-style-definition 82 | -Woverflow 83 | -Woverlength-strings 84 | -Woverloaded-virtual 85 | -Woverride-init 86 | -Wpacked 87 | -Wpacked-bitfield-compat 88 | -Wpadded 89 | -Wparentheses 90 | -Wpmf-conversions 91 | -Wpointer-arith 92 | -Wpointer-sign 93 | -Wpointer-to-int-cast 94 | -Wpragmas 95 | -Wprotocol 96 | -Wpsabi 97 | -Wredundant-decls 98 | -Wreorder 99 | -Wreturn-type 100 | -Wselector 101 | -Wsequence-point 102 | -Wshadow 103 | -Wsign-compare 104 | -Wsign-conversion 105 | -Wsign-promo 106 | -Wstack-protector 107 | -Wstrict-aliasing 108 | -Wstrict-aliasing= 109 | -Wstrict-null-sentinel 110 | -Wstrict-overflow 111 | -Wstrict-overflow= 112 | -Wstrict-prototypes 113 | -Wstrict-selector-match 114 | -Wswitch 115 | -Wswitch-default 116 | -Wswitch-enum 117 | -Wsync-nand 118 | -Wsynth 119 | -Wsystem-headers 120 | -Wtraditional 121 | -Wtraditional-conversion 122 | -Wtrigraphs 123 | -Wtype-limits 124 | -Wundeclared-selector 125 | -Wundef 126 | -Wuninitialized 127 | -Wunknown-pragmas 128 | -Wunreachable-code 129 | -Wunsafe-loop-optimizations 130 | -Wunsuffixed-float-constants 131 | -Wunused 132 | -Wunused-function 133 | -Wunused-label 134 | -Wunused-macros 135 | -Wunused-parameter 136 | -Wunused-result 137 | -Wunused-value 138 | -Wunused-variable 139 | -Wvariadic-macros 140 | -Wvla 141 | -Wvolatile-register-var 142 | -Wwrite-strings 143 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-4.6.txt: -------------------------------------------------------------------------------- 1 | --all-warnings = -Wall 2 | --extra-warnings = -Wextra 3 | --pedantic = -pedantic 4 | -pedantic 5 | -W = -Wextra 6 | -Wabi 7 | -Waddress 8 | -Waggregate-return 9 | -Wall 10 | -Warray-bounds 11 | -Wassign-intercept 12 | -Wattributes 13 | -Wbad-function-cast 14 | -Wbuiltin-macro-redefined 15 | -Wc++-compat 16 | -Wc++0x-compat 17 | -Wcast-align 18 | -Wcast-qual 19 | -Wchar-subscripts 20 | -Wclobbered 21 | -Wcomment 22 | -Wcomments = -Wcomment 23 | -Wconversion 24 | -Wconversion-null 25 | -Wcoverage-mismatch 26 | -Wcpp 27 | -Wctor-dtor-privacy 28 | -Wdeclaration-after-statement 29 | -Wdeprecated 30 | -Wdeprecated-declarations 31 | -Wdisabled-optimization 32 | -Wdiv-by-zero 33 | -Wdouble-promotion 34 | -Weffc++ 35 | -Wempty-body 36 | -Wendif-labels 37 | -Wenum-compare 38 | -Werror-implicit-function-declaration = -Werror=implicit-function-declaration 39 | -Wextra 40 | -Wfloat-equal 41 | -Wformat 42 | -Wformat-contains-nul 43 | -Wformat-extra-args 44 | -Wformat-nonliteral 45 | -Wformat-security 46 | -Wformat-y2k 47 | -Wformat-zero-length 48 | -Wformat= 49 | -Wframe-larger-than= 50 | -Wignored-qualifiers 51 | -Wimplicit 52 | -Wimplicit-function-declaration 53 | -Wimplicit-int 54 | -Wimport # DUMMY switch 55 | -Winit-self 56 | -Winline 57 | -Wint-to-pointer-cast 58 | -Winvalid-offsetof 59 | -Winvalid-pch 60 | -Wjump-misses-init 61 | -Wlarger-than- = -Wlarger-than= 62 | -Wlarger-than= 63 | -Wlogical-op 64 | -Wlong-long 65 | -Wmain 66 | -Wmissing-braces 67 | -Wmissing-declarations 68 | -Wmissing-field-initializers 69 | -Wmissing-format-attribute 70 | -Wmissing-include-dirs 71 | -Wmissing-noreturn 72 | -Wmissing-parameter-type 73 | -Wmissing-prototypes 74 | -Wmudflap 75 | -Wmultichar 76 | -Wnested-externs 77 | -Wnoexcept 78 | -Wnon-template-friend 79 | -Wnon-virtual-dtor 80 | -Wnonnull 81 | -Wnormalized= 82 | -Wold-style-cast 83 | -Wold-style-declaration 84 | -Wold-style-definition 85 | -Woverflow 86 | -Woverlength-strings 87 | -Woverloaded-virtual 88 | -Woverride-init 89 | -Wpacked 90 | -Wpacked-bitfield-compat 91 | -Wpadded 92 | -Wparentheses 93 | -Wpmf-conversions 94 | -Wpointer-arith 95 | -Wpointer-sign 96 | -Wpointer-to-int-cast 97 | -Wpragmas 98 | -Wproperty-assign-default 99 | -Wprotocol 100 | -Wpsabi 101 | -Wredundant-decls 102 | -Wreorder 103 | -Wreturn-type 104 | -Wselector 105 | -Wsequence-point 106 | -Wshadow 107 | -Wsign-compare 108 | -Wsign-conversion 109 | -Wsign-promo 110 | -Wstack-protector 111 | -Wstrict-aliasing 112 | -Wstrict-aliasing= 113 | -Wstrict-null-sentinel 114 | -Wstrict-overflow 115 | -Wstrict-overflow= 116 | -Wstrict-prototypes 117 | -Wstrict-selector-match 118 | -Wsuggest-attribute=const 119 | -Wsuggest-attribute=noreturn 120 | -Wsuggest-attribute=pure 121 | -Wswitch 122 | -Wswitch-default 123 | -Wswitch-enum 124 | -Wsync-nand 125 | -Wsynth 126 | -Wsystem-headers 127 | -Wtraditional 128 | -Wtraditional-conversion 129 | -Wtrampolines 130 | -Wtrigraphs 131 | -Wtype-limits 132 | -Wundeclared-selector 133 | -Wundef 134 | -Wuninitialized 135 | -Wunknown-pragmas 136 | -Wunreachable-code # DUMMY switch 137 | -Wunsafe-loop-optimizations 138 | -Wunsuffixed-float-constants 139 | -Wunused 140 | -Wunused-but-set-parameter 141 | -Wunused-but-set-variable 142 | -Wunused-function 143 | -Wunused-label 144 | -Wunused-macros 145 | -Wunused-parameter 146 | -Wunused-result 147 | -Wunused-value 148 | -Wunused-variable 149 | -Wvariadic-macros 150 | -Wvla 151 | -Wvolatile-register-var 152 | -Wwrite-strings 153 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-4.7.txt: -------------------------------------------------------------------------------- 1 | --all-warnings = -Wall 2 | --extra-warnings = -Wextra 3 | --pedantic = -pedantic 4 | -pedantic 5 | -W = -Wextra 6 | -Wabi 7 | -Waddress 8 | -Waggregate-return 9 | -Wall 10 | -Warray-bounds 11 | -Wassign-intercept 12 | -Wattributes 13 | -Wbad-function-cast 14 | -Wbuiltin-macro-redefined 15 | -Wc++-compat 16 | -Wc++0x-compat 17 | -Wc++11-compat = -Wc++0x-compat 18 | -Wcast-align 19 | -Wcast-qual 20 | -Wchar-subscripts 21 | -Wclobbered 22 | -Wcomment 23 | -Wcomments = -Wcomment 24 | -Wconversion 25 | -Wconversion-null 26 | -Wcoverage-mismatch 27 | -Wcpp 28 | -Wctor-dtor-privacy 29 | -Wdeclaration-after-statement 30 | -Wdelete-non-virtual-dtor 31 | -Wdeprecated 32 | -Wdeprecated-declarations 33 | -Wdisabled-optimization 34 | -Wdiv-by-zero 35 | -Wdouble-promotion 36 | -Weffc++ 37 | -Wempty-body 38 | -Wendif-labels 39 | -Wenum-compare 40 | -Werror-implicit-function-declaration = -Werror=implicit-function-declaration 41 | -Wextra 42 | -Wfloat-equal 43 | -Wformat 44 | -Wformat-contains-nul 45 | -Wformat-extra-args 46 | -Wformat-nonliteral 47 | -Wformat-security 48 | -Wformat-y2k 49 | -Wformat-zero-length 50 | -Wformat= 51 | -Wframe-larger-than= 52 | -Wfree-nonheap-object 53 | -Wignored-qualifiers 54 | -Wimplicit 55 | -Wimplicit-function-declaration 56 | -Wimplicit-int 57 | -Wimport # DUMMY switch 58 | -Winit-self 59 | -Winline 60 | -Wint-to-pointer-cast 61 | -Winvalid-memory-model 62 | -Winvalid-offsetof 63 | -Winvalid-pch 64 | -Wjump-misses-init 65 | -Wlarger-than- = -Wlarger-than= 66 | -Wlarger-than= 67 | -Wlogical-op 68 | -Wlong-long 69 | -Wmain 70 | -Wmaybe-uninitialized 71 | -Wmissing-braces 72 | -Wmissing-declarations 73 | -Wmissing-field-initializers 74 | -Wmissing-format-attribute 75 | -Wmissing-include-dirs 76 | -Wmissing-noreturn 77 | -Wmissing-parameter-type 78 | -Wmissing-prototypes 79 | -Wmudflap 80 | -Wmultichar 81 | -Wnarrowing 82 | -Wnested-externs 83 | -Wnoexcept 84 | -Wnon-template-friend 85 | -Wnon-virtual-dtor 86 | -Wnonnull 87 | -Wnormalized= 88 | -Wold-style-cast 89 | -Wold-style-declaration 90 | -Wold-style-definition 91 | -Woverflow 92 | -Woverlength-strings 93 | -Woverloaded-virtual 94 | -Woverride-init 95 | -Wpacked 96 | -Wpacked-bitfield-compat 97 | -Wpadded 98 | -Wparentheses 99 | -Wpmf-conversions 100 | -Wpointer-arith 101 | -Wpointer-sign 102 | -Wpointer-to-int-cast 103 | -Wpragmas 104 | -Wproperty-assign-default 105 | -Wprotocol 106 | -Wpsabi 107 | -Wredundant-decls 108 | -Wreorder 109 | -Wreturn-type 110 | -Wselector 111 | -Wsequence-point 112 | -Wshadow 113 | -Wsign-compare 114 | -Wsign-conversion 115 | -Wsign-promo 116 | -Wstack-protector 117 | -Wstack-usage= 118 | -Wstrict-aliasing 119 | -Wstrict-aliasing= 120 | -Wstrict-null-sentinel 121 | -Wstrict-overflow 122 | -Wstrict-overflow= 123 | -Wstrict-prototypes 124 | -Wstrict-selector-match 125 | -Wsuggest-attribute=const 126 | -Wsuggest-attribute=noreturn 127 | -Wsuggest-attribute=pure 128 | -Wswitch 129 | -Wswitch-default 130 | -Wswitch-enum 131 | -Wsync-nand 132 | -Wsynth 133 | -Wsystem-headers 134 | -Wtraditional 135 | -Wtraditional-conversion 136 | -Wtrampolines 137 | -Wtrigraphs 138 | -Wtype-limits 139 | -Wundeclared-selector 140 | -Wundef 141 | -Wuninitialized 142 | -Wunknown-pragmas 143 | -Wunreachable-code # DUMMY switch 144 | -Wunsafe-loop-optimizations 145 | -Wunsuffixed-float-constants 146 | -Wunused 147 | -Wunused-but-set-parameter 148 | -Wunused-but-set-variable 149 | -Wunused-function 150 | -Wunused-label 151 | -Wunused-local-typedefs 152 | -Wunused-macros 153 | -Wunused-parameter 154 | -Wunused-result 155 | -Wunused-value 156 | -Wunused-variable 157 | -Wvariadic-macros 158 | -Wvector-operation-performance 159 | -Wvla 160 | -Wvolatile-register-var 161 | -Wwrite-strings 162 | -Wzero-as-null-pointer-constant 163 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-4.8.txt: -------------------------------------------------------------------------------- 1 | --all-warnings = -Wall 2 | --extra-warnings = -Wextra 3 | --pedantic = -pedantic, -Wpedantic 4 | -pedantic = -Wpedantic 5 | -W = -Wextra 6 | -Wabi 7 | -Wabi-tag 8 | -Waddress 9 | -Waggregate-return 10 | -Waggressive-loop-optimizations 11 | -Wall 12 | # -Waddress 13 | # -Warray-bounds 14 | # -Wc++0x-compat 15 | # -Wnarrowing 16 | # -Wchar-subscripts 17 | # -Wdelete-non-virtual-dtor 18 | # -Wenum-compare 19 | # -Wformat= 20 | # -Wformat-contains-nul 21 | # -Wformat-extra-args 22 | # -Wformat-nonliteral 23 | # -Wformat-security 24 | # -Wformat-y2k 25 | # -Wformat-zero-length 26 | # -Wnonnull 27 | # -Wimplicit 28 | # -Wimplicit-function-declaration 29 | # -Wimplicit-int 30 | # -Winit-self 31 | # -Wmain 32 | # -Wmaybe-uninitialized 33 | # -Wmissing-braces 34 | # -Wnarrowing 35 | # -Wnonnull 36 | # -Wparentheses 37 | # -Wpointer-sign 38 | # -Wreorder 39 | # -Wreturn-type 40 | # -Wsequence-point 41 | # -Wsign-compare 42 | # -Wsizeof-pointer-memaccess 43 | # -Wstrict-aliasing= 44 | # -Wstrict-overflow= 45 | # -Wswitch 46 | # -Wuninitialized 47 | # -Wmaybe-uninitialized 48 | # -Wunknown-pragmas 49 | # -Wunused 50 | # -Wunused-but-set-variable 51 | # -Wunused-function 52 | # -Wunused-label 53 | # -Wunused-local-typedefs 54 | # -Wunused-value 55 | # -Wunused-variable 56 | # -Wvolatile-register-var 57 | -Warray-bounds 58 | -Wassign-intercept 59 | -Wattributes 60 | -Wbad-function-cast 61 | -Wbuiltin-macro-redefined 62 | -Wc++-compat 63 | # -Wenum-compare 64 | -Wc++0x-compat 65 | # -Wnarrowing 66 | -Wc++11-compat = -Wc++0x-compat 67 | -Wcast-align 68 | -Wcast-qual 69 | -Wchar-subscripts 70 | -Wclobbered 71 | -Wcomment 72 | -Wcomments = -Wcomment 73 | -Wconversion 74 | # -Wsign-conversion 75 | -Wconversion-null 76 | -Wcoverage-mismatch 77 | -Wcpp 78 | -Wctor-dtor-privacy 79 | -Wdeclaration-after-statement 80 | -Wdelete-non-virtual-dtor 81 | -Wdeprecated 82 | -Wdeprecated-declarations 83 | -Wdisabled-optimization 84 | -Wdiv-by-zero 85 | -Wdouble-promotion 86 | -Weffc++ 87 | # -Wdelete-non-virtual-dtor 88 | -Wempty-body 89 | -Wendif-labels 90 | -Wenum-compare 91 | -Werror-implicit-function-declaration = -Werror=implicit-function-declaration 92 | -Wextra 93 | # -Wclobbered 94 | # -Wempty-body 95 | # -Wignored-qualifiers 96 | # -Wmissing-field-initializers 97 | # -Wmissing-parameter-type 98 | # -Wold-style-declaration 99 | # -Woverride-init 100 | # -Wsign-compare 101 | # -Wtype-limits 102 | # -Wuninitialized 103 | # -Wmaybe-uninitialized 104 | # -Wunused-but-set-parameter 105 | # -Wunused-parameter 106 | -Wfloat-equal 107 | -Wformat = -Wformat=1 108 | -Wformat-contains-nul 109 | -Wformat-extra-args 110 | -Wformat-nonliteral 111 | -Wformat-security 112 | -Wformat-y2k 113 | -Wformat-zero-length 114 | -Wformat= 115 | # -Wformat-contains-nul 116 | # -Wformat-extra-args 117 | # -Wformat-nonliteral 118 | # -Wformat-security 119 | # -Wformat-y2k 120 | # -Wformat-zero-length 121 | # -Wnonnull 122 | -Wframe-larger-than= 123 | -Wfree-nonheap-object 124 | -Wignored-qualifiers 125 | -Wimplicit 126 | # -Wimplicit-function-declaration 127 | # -Wimplicit-int 128 | -Wimplicit-function-declaration 129 | -Wimplicit-int 130 | -Wimport # DUMMY switch 131 | -Winherited-variadic-ctor 132 | -Winit-self 133 | -Winline 134 | -Wint-to-pointer-cast 135 | -Winvalid-memory-model 136 | -Winvalid-offsetof 137 | -Winvalid-pch 138 | -Wjump-misses-init 139 | -Wlarger-than- = -Wlarger-than= 140 | -Wlarger-than= 141 | -Wliteral-suffix 142 | -Wlogical-op 143 | -Wlong-long 144 | -Wmain 145 | -Wmaybe-uninitialized 146 | -Wmissing-braces 147 | -Wmissing-declarations 148 | -Wmissing-field-initializers 149 | -Wmissing-format-attribute = -Wsuggest-attribute=format 150 | -Wmissing-include-dirs 151 | -Wmissing-noreturn = -Wsuggest-attribute=noreturn 152 | -Wmissing-parameter-type 153 | -Wmissing-prototypes 154 | -Wmudflap 155 | -Wmultichar 156 | -Wnarrowing 157 | -Wnested-externs 158 | -Wnoexcept 159 | -Wnon-template-friend 160 | -Wnon-virtual-dtor 161 | -Wnonnull 162 | -Wnormalized= 163 | -Wold-style-cast 164 | -Wold-style-declaration 165 | -Wold-style-definition 166 | -Woverflow 167 | -Woverlength-strings 168 | -Woverloaded-virtual 169 | -Woverride-init 170 | -Wpacked 171 | -Wpacked-bitfield-compat 172 | -Wpadded 173 | -Wparentheses 174 | -Wpedantic 175 | # -Wmain 176 | # -Woverlength-strings 177 | # -Wpointer-sign 178 | -Wpmf-conversions 179 | -Wpointer-arith 180 | -Wpointer-sign 181 | -Wpointer-to-int-cast 182 | -Wpragmas 183 | -Wproperty-assign-default 184 | -Wprotocol 185 | -Wpsabi 186 | -Wredundant-decls 187 | -Wreorder 188 | -Wreturn-local-addr 189 | -Wreturn-type 190 | -Wselector 191 | -Wsequence-point 192 | -Wshadow 193 | -Wsign-compare 194 | -Wsign-conversion 195 | -Wsign-promo 196 | -Wsizeof-pointer-memaccess 197 | -Wstack-protector 198 | -Wstack-usage= 199 | -Wstrict-aliasing 200 | -Wstrict-aliasing= 201 | -Wstrict-null-sentinel 202 | -Wstrict-overflow 203 | -Wstrict-overflow= 204 | -Wstrict-prototypes 205 | -Wstrict-selector-match 206 | -Wsuggest-attribute=const 207 | -Wsuggest-attribute=format 208 | -Wsuggest-attribute=noreturn 209 | -Wsuggest-attribute=pure 210 | -Wswitch 211 | -Wswitch-default 212 | -Wswitch-enum 213 | -Wsync-nand 214 | -Wsynth 215 | -Wsystem-headers 216 | -Wtraditional 217 | -Wtraditional-conversion 218 | -Wtrampolines 219 | -Wtrigraphs 220 | -Wtype-limits 221 | -Wundeclared-selector 222 | -Wundef 223 | -Wuninitialized 224 | # -Wmaybe-uninitialized 225 | -Wunknown-pragmas 226 | -Wunreachable-code # DUMMY switch 227 | -Wunsafe-loop-optimizations 228 | -Wunsuffixed-float-constants 229 | -Wunused 230 | # -Wunused-but-set-variable 231 | # -Wunused-function 232 | # -Wunused-label 233 | # -Wunused-local-typedefs 234 | # -Wunused-value 235 | # -Wunused-variable 236 | -Wunused-but-set-parameter 237 | -Wunused-but-set-variable 238 | -Wunused-function 239 | -Wunused-label 240 | -Wunused-local-typedefs 241 | -Wunused-macros 242 | -Wunused-parameter 243 | -Wunused-result 244 | -Wunused-value 245 | -Wunused-variable 246 | -Wuseless-cast 247 | -Wvarargs 248 | -Wvariadic-macros 249 | -Wvector-operation-performance 250 | -Wvirtual-move-assign 251 | -Wvla 252 | -Wvolatile-register-var 253 | -Wwrite-strings 254 | -Wzero-as-null-pointer-constant 255 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-4.9.txt: -------------------------------------------------------------------------------- 1 | --all-warnings = -Wall 2 | --extra-warnings = -Wextra 3 | --pedantic = -pedantic, -Wpedantic 4 | -pedantic = -Wpedantic 5 | -W = -Wextra 6 | -Wabi 7 | -Wabi-tag 8 | -Waddress 9 | -Waggregate-return 10 | -Waggressive-loop-optimizations 11 | -Wall 12 | # -Waddress 13 | # -Warray-bounds 14 | # -Wc++0x-compat 15 | # -Wnarrowing 16 | # -Wchar-subscripts 17 | # -Wdelete-non-virtual-dtor 18 | # -Wenum-compare 19 | # -Wformat= 20 | # -Wformat-contains-nul 21 | # -Wformat-extra-args 22 | # -Wformat-nonliteral 23 | # -Wformat-security 24 | # -Wformat-y2k 25 | # -Wformat-zero-length 26 | # -Wnonnull 27 | # -Wimplicit 28 | # -Wimplicit-function-declaration 29 | # -Wimplicit-int 30 | # -Winit-self 31 | # -Wmain 32 | # -Wmaybe-uninitialized 33 | # -Wmissing-braces 34 | # -Wnarrowing 35 | # -Wnonnull 36 | # -Wopenmp-simd 37 | # -Wparentheses 38 | # -Wpointer-sign 39 | # -Wreorder 40 | # -Wreturn-type 41 | # -Wsequence-point 42 | # -Wsign-compare 43 | # -Wsizeof-pointer-memaccess 44 | # -Wstrict-aliasing= 45 | # -Wstrict-overflow= 46 | # -Wswitch 47 | # -Wuninitialized 48 | # -Wmaybe-uninitialized 49 | # -Wunknown-pragmas 50 | # -Wunused 51 | # -Wunused-but-set-variable 52 | # -Wunused-function 53 | # -Wunused-label 54 | # -Wunused-local-typedefs 55 | # -Wunused-value 56 | # -Wunused-variable 57 | # -Wvolatile-register-var 58 | -Warray-bounds 59 | -Wassign-intercept 60 | -Wattributes 61 | -Wbad-function-cast 62 | -Wbuiltin-macro-redefined 63 | -Wc++-compat 64 | # -Wenum-compare 65 | -Wc++0x-compat 66 | # -Wnarrowing 67 | -Wc++11-compat = -Wc++0x-compat 68 | -Wcast-align 69 | -Wcast-qual 70 | -Wchar-subscripts 71 | -Wclobbered 72 | -Wcomment 73 | -Wcomments = -Wcomment 74 | -Wconditionally-supported 75 | -Wconversion 76 | # -Wfloat-conversion 77 | # -Wsign-conversion 78 | -Wconversion-null 79 | -Wcoverage-mismatch 80 | -Wcpp 81 | -Wctor-dtor-privacy 82 | -Wdate-time 83 | -Wdeclaration-after-statement 84 | -Wdelete-incomplete 85 | -Wdelete-non-virtual-dtor 86 | -Wdeprecated 87 | -Wdeprecated-declarations 88 | -Wdisabled-optimization 89 | -Wdiv-by-zero 90 | -Wdouble-promotion 91 | -Weffc++ 92 | # -Wdelete-non-virtual-dtor 93 | # -Wnon-virtual-dtor 94 | -Wempty-body 95 | -Wendif-labels 96 | -Wenum-compare 97 | -Werror-implicit-function-declaration = -Werror=implicit-function-declaration 98 | -Wextra 99 | # -Wclobbered 100 | # -Wempty-body 101 | # -Wignored-qualifiers 102 | # -Wmissing-field-initializers 103 | # -Wmissing-parameter-type 104 | # -Wold-style-declaration 105 | # -Woverride-init 106 | # -Wsign-compare 107 | # -Wtype-limits 108 | # -Wuninitialized 109 | # -Wmaybe-uninitialized 110 | # -Wunused-but-set-parameter 111 | # -Wunused-parameter 112 | -Wfloat-conversion 113 | -Wfloat-equal 114 | -Wformat = -Wformat=1 115 | -Wformat-contains-nul 116 | -Wformat-extra-args 117 | -Wformat-nonliteral 118 | -Wformat-security 119 | -Wformat-y2k 120 | -Wformat-zero-length 121 | -Wformat= 122 | # -Wformat-contains-nul 123 | # -Wformat-extra-args 124 | # -Wformat-nonliteral 125 | # -Wformat-security 126 | # -Wformat-y2k 127 | # -Wformat-zero-length 128 | # -Wnonnull 129 | -Wframe-larger-than= 130 | -Wfree-nonheap-object 131 | -Wignored-qualifiers 132 | -Wimplicit 133 | # -Wimplicit-function-declaration 134 | # -Wimplicit-int 135 | -Wimplicit-function-declaration 136 | -Wimplicit-int 137 | -Wimport # DUMMY switch 138 | -Winherited-variadic-ctor 139 | -Winit-self 140 | -Winline 141 | -Wint-to-pointer-cast 142 | -Winvalid-memory-model 143 | -Winvalid-offsetof 144 | -Winvalid-pch 145 | -Wjump-misses-init 146 | -Wlarger-than- = -Wlarger-than= 147 | -Wlarger-than= 148 | -Wliteral-suffix 149 | -Wlogical-op 150 | -Wlong-long 151 | -Wmain 152 | -Wmaybe-uninitialized 153 | -Wmissing-braces 154 | -Wmissing-declarations 155 | -Wmissing-field-initializers 156 | -Wmissing-format-attribute = -Wsuggest-attribute=format 157 | -Wmissing-include-dirs 158 | -Wmissing-noreturn = -Wsuggest-attribute=noreturn 159 | -Wmissing-parameter-type 160 | -Wmissing-prototypes 161 | -Wmudflap # DUMMY switch 162 | -Wmultichar 163 | -Wnarrowing 164 | -Wnested-externs 165 | -Wnoexcept 166 | -Wnon-template-friend 167 | -Wnon-virtual-dtor 168 | -Wnonnull 169 | -Wnormalized= 170 | -Wold-style-cast 171 | -Wold-style-declaration 172 | -Wold-style-definition 173 | -Wopenmp-simd 174 | -Woverflow 175 | -Woverlength-strings 176 | -Woverloaded-virtual 177 | -Woverride-init 178 | -Wpacked 179 | -Wpacked-bitfield-compat 180 | -Wpadded 181 | -Wparentheses 182 | -Wpedantic 183 | # -Wmain 184 | # -Woverlength-strings 185 | # -Wpointer-arith 186 | # -Wpointer-sign 187 | -Wpmf-conversions 188 | -Wpointer-arith 189 | -Wpointer-sign 190 | -Wpointer-to-int-cast 191 | -Wpragmas 192 | -Wproperty-assign-default 193 | -Wprotocol 194 | -Wpsabi 195 | -Wredundant-decls 196 | -Wreorder 197 | -Wreturn-local-addr 198 | -Wreturn-type 199 | -Wselector 200 | -Wsequence-point 201 | -Wshadow 202 | -Wsign-compare 203 | -Wsign-conversion 204 | -Wsign-promo 205 | -Wsizeof-pointer-memaccess 206 | -Wstack-protector 207 | -Wstack-usage= 208 | -Wstrict-aliasing 209 | -Wstrict-aliasing= 210 | -Wstrict-null-sentinel 211 | -Wstrict-overflow 212 | -Wstrict-overflow= 213 | -Wstrict-prototypes 214 | -Wstrict-selector-match 215 | -Wsuggest-attribute=const 216 | -Wsuggest-attribute=format 217 | -Wsuggest-attribute=noreturn 218 | -Wsuggest-attribute=pure 219 | -Wswitch 220 | -Wswitch-default 221 | -Wswitch-enum 222 | -Wsync-nand 223 | -Wsynth 224 | -Wsystem-headers 225 | -Wtraditional 226 | -Wtraditional-conversion 227 | -Wtrampolines 228 | -Wtrigraphs 229 | -Wtype-limits 230 | -Wundeclared-selector 231 | -Wundef 232 | -Wuninitialized 233 | # -Wmaybe-uninitialized 234 | -Wunknown-pragmas 235 | -Wunreachable-code # DUMMY switch 236 | -Wunsafe-loop-optimizations 237 | -Wunsuffixed-float-constants 238 | -Wunused 239 | # -Wunused-but-set-variable 240 | # -Wunused-function 241 | # -Wunused-label 242 | # -Wunused-local-typedefs 243 | # -Wunused-value 244 | # -Wunused-variable 245 | -Wunused-but-set-parameter 246 | -Wunused-but-set-variable 247 | -Wunused-function 248 | -Wunused-label 249 | -Wunused-local-typedefs 250 | -Wunused-macros 251 | -Wunused-parameter 252 | -Wunused-result 253 | -Wunused-value 254 | -Wunused-variable 255 | -Wuseless-cast 256 | -Wvarargs 257 | -Wvariadic-macros 258 | -Wvector-operation-performance 259 | -Wvirtual-move-assign 260 | -Wvla 261 | -Wvolatile-register-var 262 | -Wwrite-strings 263 | -Wzero-as-null-pointer-constant 264 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-5.txt: -------------------------------------------------------------------------------- 1 | --all-warnings = -Wall 2 | --extra-warnings = -Wextra 3 | --pedantic = -pedantic, -Wpedantic 4 | -pedantic = -Wpedantic 5 | -W = -Wextra 6 | -Wabi 7 | # -Wpsabi 8 | -Wabi-tag 9 | -Wabi= 10 | -Waddress 11 | -Waggregate-return 12 | -Waggressive-loop-optimizations 13 | -Wall 14 | # -Waddress 15 | # -Warray-bounds 16 | # -Warray-bounds= 17 | # -Wbool-compare 18 | # -Wc++0x-compat 19 | # -Wnarrowing 20 | # -Wc++14-compat 21 | # -Wchar-subscripts 22 | # -Wchkp 23 | # -Wcomment 24 | # -Wdelete-non-virtual-dtor 25 | # -Wenum-compare 26 | # -Wformat= 27 | # -Wformat-contains-nul 28 | # -Wformat-extra-args 29 | # -Wformat-nonliteral 30 | # -Wformat-security 31 | # -Wformat-y2k 32 | # -Wformat-zero-length 33 | # -Wnonnull 34 | # -Wimplicit 35 | # -Wimplicit-function-declaration 36 | # -Wimplicit-int 37 | # -Winit-self 38 | # -Wlogical-not-parentheses 39 | # -Wmain 40 | # -Wmaybe-uninitialized 41 | # -Wmemset-transposed-args 42 | # -Wmissing-braces 43 | # -Wnarrowing 44 | # -Wnonnull 45 | # -Wopenmp-simd 46 | # -Wparentheses 47 | # -Wpointer-sign 48 | # -Wreorder 49 | # -Wreturn-type 50 | # -Wsequence-point 51 | # -Wsign-compare 52 | # -Wsizeof-pointer-memaccess 53 | # -Wstrict-aliasing= 54 | # -Wstrict-overflow= 55 | # -Wswitch 56 | # -Wtrigraphs 57 | # -Wuninitialized 58 | # -Wmaybe-uninitialized 59 | # -Wunknown-pragmas 60 | # -Wunused 61 | # -Wunused-but-set-variable 62 | # -Wunused-function 63 | # -Wunused-label 64 | # -Wunused-local-typedefs 65 | # -Wunused-value 66 | # -Wunused-variable 67 | # -Wvolatile-register-var 68 | -Warray-bounds 69 | -Warray-bounds= 70 | -Wassign-intercept 71 | -Wattributes 72 | -Wbad-function-cast 73 | -Wbool-compare 74 | -Wbuiltin-macro-redefined 75 | -Wc++-compat 76 | # -Wenum-compare 77 | -Wc++0x-compat 78 | # -Wnarrowing 79 | -Wc++11-compat = -Wc++0x-compat 80 | -Wc++14-compat 81 | -Wc90-c99-compat 82 | # -Wlong-long 83 | -Wc99-c11-compat 84 | -Wcast-align 85 | -Wcast-qual 86 | -Wchar-subscripts 87 | -Wchkp 88 | -Wclobbered 89 | -Wcomment 90 | -Wcomments = -Wcomment 91 | -Wconditionally-supported 92 | -Wconversion 93 | # -Wfloat-conversion 94 | # -Wsign-conversion 95 | -Wconversion-null 96 | -Wcoverage-mismatch 97 | -Wcpp 98 | -Wctor-dtor-privacy 99 | -Wdate-time 100 | -Wdeclaration-after-statement 101 | -Wdelete-incomplete 102 | -Wdelete-non-virtual-dtor 103 | -Wdeprecated 104 | -Wdeprecated-declarations 105 | -Wdesignated-init 106 | -Wdisabled-optimization 107 | -Wdiscarded-array-qualifiers 108 | -Wdiscarded-qualifiers 109 | -Wdiv-by-zero 110 | -Wdouble-promotion 111 | -Weffc++ 112 | # -Wdelete-non-virtual-dtor 113 | # -Wnon-virtual-dtor 114 | -Wempty-body 115 | -Wendif-labels 116 | -Wenum-compare 117 | -Werror-implicit-function-declaration = -Werror=implicit-function-declaration 118 | -Wextra 119 | # -Wclobbered 120 | # -Wempty-body 121 | # -Wignored-qualifiers 122 | # -Wmissing-field-initializers 123 | # -Wmissing-parameter-type 124 | # -Wold-style-declaration 125 | # -Woverride-init 126 | # -Wsign-compare 127 | # -Wsized-deallocation 128 | # -Wtype-limits 129 | # -Wuninitialized 130 | # -Wmaybe-uninitialized 131 | # -Wunused-but-set-parameter 132 | # -Wunused-parameter 133 | -Wfloat-conversion 134 | -Wfloat-equal 135 | -Wformat = -Wformat=1 136 | -Wformat-contains-nul 137 | -Wformat-extra-args 138 | -Wformat-nonliteral 139 | -Wformat-security 140 | -Wformat-signedness 141 | -Wformat-y2k 142 | -Wformat-zero-length 143 | -Wformat= 144 | # -Wformat-contains-nul 145 | # -Wformat-extra-args 146 | # -Wformat-nonliteral 147 | # -Wformat-security 148 | # -Wformat-y2k 149 | # -Wformat-zero-length 150 | # -Wnonnull 151 | -Wframe-larger-than= 152 | -Wfree-nonheap-object 153 | -Wignored-qualifiers 154 | -Wimplicit 155 | # -Wimplicit-function-declaration 156 | # -Wimplicit-int 157 | -Wimplicit-function-declaration 158 | -Wimplicit-int 159 | -Wimport # DUMMY switch 160 | -Wincompatible-pointer-types 161 | -Winherited-variadic-ctor 162 | -Winit-self 163 | -Winline 164 | -Wint-conversion 165 | -Wint-to-pointer-cast 166 | -Winvalid-memory-model 167 | -Winvalid-offsetof 168 | -Winvalid-pch 169 | -Wjump-misses-init 170 | -Wlarger-than- = -Wlarger-than= 171 | -Wlarger-than= 172 | -Wliteral-suffix 173 | -Wlogical-not-parentheses 174 | -Wlogical-op 175 | -Wlong-long 176 | -Wmain 177 | -Wmaybe-uninitialized 178 | -Wmemset-transposed-args 179 | -Wmissing-braces 180 | -Wmissing-declarations 181 | -Wmissing-field-initializers 182 | -Wmissing-format-attribute = -Wsuggest-attribute=format 183 | -Wmissing-include-dirs 184 | -Wmissing-noreturn = -Wsuggest-attribute=noreturn 185 | -Wmissing-parameter-type 186 | -Wmissing-prototypes 187 | -Wmudflap # DUMMY switch 188 | -Wmultichar 189 | -Wnarrowing 190 | -Wnested-externs 191 | -Wnoexcept 192 | -Wnon-template-friend 193 | -Wnon-virtual-dtor 194 | -Wnonnull 195 | -Wnormalized = -Wnormalized=nfc 196 | -Wnormalized= 197 | -Wodr 198 | -Wold-style-cast 199 | -Wold-style-declaration 200 | -Wold-style-definition 201 | -Wopenmp-simd 202 | -Woverflow 203 | -Woverlength-strings 204 | -Woverloaded-virtual 205 | -Woverride-init 206 | -Wpacked 207 | -Wpacked-bitfield-compat 208 | -Wpadded 209 | -Wparentheses 210 | -Wpedantic 211 | # -Wendif-labels 212 | # -Wmain 213 | # -Woverlength-strings 214 | # -Wpointer-arith 215 | # -Wpointer-sign 216 | # -Wvariadic-macros 217 | -Wpmf-conversions 218 | -Wpointer-arith 219 | -Wpointer-sign 220 | -Wpointer-to-int-cast 221 | -Wpragmas 222 | -Wproperty-assign-default 223 | -Wprotocol 224 | -Wpsabi 225 | -Wredundant-decls 226 | -Wreorder 227 | -Wreturn-local-addr 228 | -Wreturn-type 229 | -Wselector 230 | -Wsequence-point 231 | -Wshadow 232 | # -Wshadow-ivar 233 | -Wshadow-ivar 234 | -Wshift-count-negative 235 | -Wshift-count-overflow 236 | -Wsign-compare 237 | -Wsign-conversion 238 | -Wsign-promo 239 | -Wsized-deallocation 240 | -Wsizeof-array-argument 241 | -Wsizeof-pointer-memaccess 242 | -Wstack-protector 243 | -Wstack-usage= 244 | -Wstrict-aliasing 245 | -Wstrict-aliasing= 246 | -Wstrict-null-sentinel 247 | -Wstrict-overflow 248 | -Wstrict-overflow= 249 | -Wstrict-prototypes 250 | -Wstrict-selector-match 251 | -Wsuggest-attribute=const 252 | -Wsuggest-attribute=format 253 | -Wsuggest-attribute=noreturn 254 | -Wsuggest-attribute=pure 255 | -Wsuggest-final-methods 256 | -Wsuggest-final-types 257 | -Wsuggest-override 258 | -Wswitch 259 | -Wswitch-bool 260 | -Wswitch-default 261 | -Wswitch-enum 262 | -Wsync-nand 263 | -Wsynth 264 | -Wsystem-headers 265 | -Wtraditional 266 | # -Wvariadic-macros 267 | -Wtraditional-conversion 268 | -Wtrampolines 269 | -Wtrigraphs 270 | -Wtype-limits 271 | -Wundeclared-selector 272 | -Wundef 273 | -Wuninitialized 274 | # -Wmaybe-uninitialized 275 | -Wunknown-pragmas 276 | -Wunreachable-code # DUMMY switch 277 | -Wunsafe-loop-optimizations 278 | -Wunsuffixed-float-constants 279 | -Wunused 280 | # -Wunused-but-set-variable 281 | # -Wunused-function 282 | # -Wunused-label 283 | # -Wunused-local-typedefs 284 | # -Wunused-value 285 | # -Wunused-variable 286 | -Wunused-but-set-parameter 287 | -Wunused-but-set-variable 288 | -Wunused-function 289 | -Wunused-label 290 | -Wunused-local-typedefs 291 | -Wunused-macros 292 | -Wunused-parameter 293 | -Wunused-result 294 | -Wunused-value 295 | -Wunused-variable 296 | -Wuseless-cast 297 | -Wvarargs 298 | -Wvariadic-macros 299 | -Wvector-operation-performance 300 | -Wvirtual-move-assign 301 | -Wvla 302 | -Wvolatile-register-var 303 | -Wwrite-strings 304 | -Wzero-as-null-pointer-constant 305 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-6.txt: -------------------------------------------------------------------------------- 1 | --all-warnings = -Wall 2 | --extra-warnings = -Wextra 3 | --pedantic = -pedantic, -Wpedantic 4 | -pedantic = -Wpedantic 5 | -W = -Wextra 6 | -Wabi 7 | # -Wpsabi 8 | -Wabi-tag 9 | -Wabi= 10 | -Waddress 11 | -Waggregate-return 12 | -Waggressive-loop-optimizations 13 | -Wall 14 | # -Waddress 15 | # -Warray-bounds 16 | # -Warray-bounds= 17 | # -Wbool-compare 18 | # -Wc++11-compat 19 | # -Wnarrowing 20 | # -Wc++14-compat 21 | # -Wchar-subscripts 22 | # -Wchkp 23 | # -Wcomment 24 | # -Wdelete-non-virtual-dtor 25 | # -Wenum-compare 26 | # -Wformat= 27 | # -Wformat-contains-nul 28 | # -Wformat-extra-args 29 | # -Wformat-nonliteral 30 | # -Wformat-security 31 | # -Wformat-y2k 32 | # -Wformat-zero-length 33 | # -Wnonnull 34 | # -Wframe-address 35 | # -Wimplicit 36 | # -Wimplicit-function-declaration 37 | # -Wimplicit-int 38 | # -Winit-self 39 | # -Wlogical-not-parentheses 40 | # -Wmain 41 | # -Wmaybe-uninitialized 42 | # -Wmemset-transposed-args 43 | # -Wmisleading-indentation 44 | # -Wmissing-braces 45 | # -Wnarrowing 46 | # -Wnonnull 47 | # -Wnonnull-compare 48 | # -Wopenmp-simd 49 | # -Wparentheses 50 | # -Wpointer-sign 51 | # -Wreorder 52 | # -Wreturn-type 53 | # -Wsequence-point 54 | # -Wsign-compare 55 | # -Wsizeof-pointer-memaccess 56 | # -Wstrict-aliasing= 57 | # -Wstrict-overflow= 58 | # -Wswitch 59 | # -Wtautological-compare 60 | # -Wtrigraphs 61 | # -Wuninitialized 62 | # -Wmaybe-uninitialized 63 | # -Wunknown-pragmas 64 | # -Wunused 65 | # -Wunused-but-set-variable 66 | # -Wunused-function 67 | # -Wunused-label 68 | # -Wunused-local-typedefs 69 | # -Wunused-value 70 | # -Wunused-variable 71 | # -Wunused-const-variable= 72 | # -Wvolatile-register-var 73 | -Warray-bounds 74 | -Warray-bounds= 75 | -Wassign-intercept 76 | -Wattributes 77 | -Wbad-function-cast 78 | -Wbool-compare 79 | -Wbuiltin-macro-redefined 80 | -Wc++-compat 81 | # -Wenum-compare 82 | -Wc++0x-compat = -Wc++11-compat 83 | -Wc++11-compat 84 | # -Wnarrowing 85 | -Wc++14-compat 86 | -Wc90-c99-compat 87 | # -Wlong-long 88 | -Wc99-c11-compat 89 | -Wcast-align 90 | -Wcast-qual 91 | -Wchar-subscripts 92 | -Wchkp 93 | -Wclobbered 94 | -Wcomment 95 | -Wcomments = -Wcomment 96 | -Wconditionally-supported 97 | -Wconversion 98 | # -Wfloat-conversion 99 | # -Wsign-conversion 100 | -Wconversion-null 101 | -Wcoverage-mismatch 102 | -Wcpp 103 | -Wctor-dtor-privacy 104 | -Wdate-time 105 | -Wdeclaration-after-statement 106 | -Wdelete-incomplete 107 | -Wdelete-non-virtual-dtor 108 | -Wdeprecated 109 | -Wdeprecated-declarations 110 | -Wdesignated-init 111 | -Wdisabled-optimization 112 | -Wdiscarded-array-qualifiers 113 | -Wdiscarded-qualifiers 114 | -Wdiv-by-zero 115 | -Wdouble-promotion 116 | -Wduplicated-cond 117 | -Weffc++ 118 | # -Wdelete-non-virtual-dtor 119 | # -Wnon-virtual-dtor 120 | -Wempty-body 121 | -Wendif-labels 122 | -Wenum-compare 123 | -Werror-implicit-function-declaration = -Werror=implicit-function-declaration 124 | -Wextra 125 | # -Wclobbered 126 | # -Wempty-body 127 | # -Wignored-qualifiers 128 | # -Wmissing-field-initializers 129 | # -Wmissing-parameter-type 130 | # -Wold-style-declaration 131 | # -Woverride-init 132 | # -Wsign-compare 133 | # -Wsized-deallocation 134 | # -Wtype-limits 135 | # -Wuninitialized 136 | # -Wmaybe-uninitialized 137 | # -Wunused-but-set-parameter 138 | # -Wunused-parameter 139 | -Wfloat-conversion 140 | -Wfloat-equal 141 | -Wformat = -Wformat=1 142 | -Wformat-contains-nul 143 | -Wformat-extra-args 144 | -Wformat-nonliteral 145 | -Wformat-security 146 | -Wformat-signedness 147 | -Wformat-y2k 148 | -Wformat-zero-length 149 | -Wformat= 150 | # -Wformat-contains-nul 151 | # -Wformat-extra-args 152 | # -Wformat-nonliteral 153 | # -Wformat-security 154 | # -Wformat-y2k 155 | # -Wformat-zero-length 156 | # -Wnonnull 157 | -Wframe-address 158 | -Wframe-larger-than= 159 | -Wfree-nonheap-object 160 | -Whsa 161 | -Wignored-attributes 162 | -Wignored-qualifiers 163 | -Wimplicit 164 | # -Wimplicit-function-declaration 165 | # -Wimplicit-int 166 | -Wimplicit-function-declaration 167 | -Wimplicit-int 168 | -Wimport # DUMMY switch 169 | -Wincompatible-pointer-types 170 | -Winherited-variadic-ctor 171 | -Winit-self 172 | -Winline 173 | -Wint-conversion 174 | -Wint-to-pointer-cast 175 | -Winvalid-memory-model 176 | -Winvalid-offsetof 177 | -Winvalid-pch 178 | -Wjump-misses-init 179 | -Wlarger-than- = -Wlarger-than= 180 | -Wlarger-than= 181 | -Wliteral-suffix 182 | -Wlogical-not-parentheses 183 | -Wlogical-op 184 | -Wlong-long 185 | -Wlto-type-mismatch 186 | -Wmain 187 | -Wmaybe-uninitialized 188 | -Wmemset-transposed-args 189 | -Wmisleading-indentation 190 | -Wmissing-braces 191 | -Wmissing-declarations 192 | -Wmissing-field-initializers 193 | -Wmissing-format-attribute = -Wsuggest-attribute=format 194 | -Wmissing-include-dirs 195 | -Wmissing-noreturn = -Wsuggest-attribute=noreturn 196 | -Wmissing-parameter-type 197 | -Wmissing-prototypes 198 | -Wmudflap # DUMMY switch 199 | -Wmultichar 200 | -Wmultiple-inheritance 201 | -Wnamespaces 202 | -Wnarrowing 203 | -Wnested-externs 204 | -Wnoexcept 205 | -Wnon-template-friend 206 | -Wnon-virtual-dtor 207 | -Wnonnull 208 | -Wnonnull-compare 209 | -Wnormalized = -Wnormalized=nfc 210 | -Wnormalized= 211 | -Wnull-dereference 212 | -Wodr 213 | -Wold-style-cast 214 | -Wold-style-declaration 215 | -Wold-style-definition 216 | -Wopenmp-simd 217 | -Woverflow 218 | -Woverlength-strings 219 | -Woverloaded-virtual 220 | -Woverride-init 221 | -Woverride-init-side-effects 222 | -Wpacked 223 | -Wpacked-bitfield-compat 224 | -Wpadded 225 | -Wparentheses 226 | -Wpedantic 227 | # -Wendif-labels 228 | # -Wmain 229 | # -Woverlength-strings 230 | # -Wpointer-arith 231 | # -Wpointer-sign 232 | # -Wvariadic-macros 233 | -Wplacement-new = -Wplacement-new=1 234 | -Wplacement-new= 235 | -Wpmf-conversions 236 | -Wpointer-arith 237 | -Wpointer-sign 238 | -Wpointer-to-int-cast 239 | -Wpragmas 240 | -Wproperty-assign-default 241 | -Wprotocol 242 | -Wpsabi 243 | -Wredundant-decls 244 | -Wreorder 245 | -Wreturn-local-addr 246 | -Wreturn-type 247 | -Wscalar-storage-order 248 | -Wselector 249 | -Wsequence-point 250 | -Wshadow 251 | # -Wshadow-ivar 252 | -Wshadow-ivar 253 | -Wshift-count-negative 254 | -Wshift-count-overflow 255 | -Wshift-negative-value 256 | -Wshift-overflow = -Wshift-overflow=1 257 | -Wshift-overflow= 258 | -Wsign-compare 259 | -Wsign-conversion 260 | -Wsign-promo 261 | -Wsized-deallocation 262 | -Wsizeof-array-argument 263 | -Wsizeof-pointer-memaccess 264 | -Wstack-protector 265 | -Wstack-usage= 266 | -Wstrict-aliasing 267 | -Wstrict-aliasing= 268 | -Wstrict-null-sentinel 269 | -Wstrict-overflow 270 | -Wstrict-overflow= 271 | -Wstrict-prototypes 272 | -Wstrict-selector-match 273 | -Wsubobject-linkage 274 | -Wsuggest-attribute=const 275 | -Wsuggest-attribute=format 276 | -Wsuggest-attribute=noreturn 277 | -Wsuggest-attribute=pure 278 | -Wsuggest-final-methods 279 | -Wsuggest-final-types 280 | -Wsuggest-override 281 | -Wswitch 282 | -Wswitch-bool 283 | -Wswitch-default 284 | -Wswitch-enum 285 | -Wsync-nand 286 | -Wsynth 287 | -Wsystem-headers 288 | -Wtautological-compare 289 | -Wtemplates 290 | -Wterminate 291 | -Wtraditional 292 | # -Wvariadic-macros 293 | -Wtraditional-conversion 294 | -Wtrampolines 295 | -Wtrigraphs 296 | -Wtype-limits 297 | -Wundeclared-selector 298 | -Wundef 299 | -Wuninitialized 300 | # -Wmaybe-uninitialized 301 | -Wunknown-pragmas 302 | -Wunreachable-code # DUMMY switch 303 | -Wunsafe-loop-optimizations 304 | -Wunsuffixed-float-constants 305 | -Wunused 306 | # -Wunused-but-set-variable 307 | # -Wunused-function 308 | # -Wunused-label 309 | # -Wunused-local-typedefs 310 | # -Wunused-value 311 | # -Wunused-variable 312 | # -Wunused-const-variable= 313 | -Wunused-but-set-parameter 314 | -Wunused-but-set-variable 315 | -Wunused-const-variable = -Wunused-const-variable=2 316 | -Wunused-const-variable= 317 | -Wunused-function 318 | -Wunused-label 319 | -Wunused-local-typedefs 320 | -Wunused-macros 321 | -Wunused-parameter 322 | -Wunused-result 323 | -Wunused-value 324 | -Wunused-variable 325 | # -Wunused-const-variable= 326 | -Wuseless-cast 327 | -Wvarargs 328 | -Wvariadic-macros 329 | -Wvector-operation-performance 330 | -Wvirtual-inheritance 331 | -Wvirtual-move-assign 332 | -Wvla 333 | -Wvolatile-register-var 334 | -Wwrite-strings 335 | -Wzero-as-null-pointer-constant 336 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-3.4-4.0.txt: -------------------------------------------------------------------------------- 1 | +-Wmissing-field-initializers 2 | +-Wmissing-include-dirs 3 | +-Wpointer-sign 4 | +-Wstrict-aliasing= 5 | +-Wstrict-null-sentinel 6 | +-Wvariadic-macros 7 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-4.0-4.1.txt: -------------------------------------------------------------------------------- 1 | +-Wassign-intercept 2 | +-Wattributes 3 | +-Wc++-compat 4 | +-Wint-to-pointer-cast 5 | +-Wnormalized= 6 | +-Wpointer-to-int-cast 7 | +-Wpragmas 8 | +-Wstack-protector 9 | +-Wstrict-selector-match 10 | +-Wunsafe-loop-optimizations 11 | +-Wvolatile-register-var 12 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-4.1-4.2.txt: -------------------------------------------------------------------------------- 1 | +-Waddress 2 | +-Woverflow 3 | +-Woverlength-strings 4 | +-Woverride-init 5 | +-Wstrict-overflow 6 | +-Wstrict-overflow= 7 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-4.2-4.3.txt: -------------------------------------------------------------------------------- 1 | +-Warray-bounds 2 | +-Wc++0x-compat 3 | +-Wclobbered 4 | +-Wcoverage-mismatch 5 | +-Wempty-body 6 | +-Wformat-contains-nul 7 | +-Wignored-qualifiers 8 | +-Wlogical-op 9 | +-Wmissing-parameter-type 10 | +-Wold-style-declaration 11 | +-Wsign-conversion 12 | +-Wtraditional-conversion 13 | +-Wtype-limits 14 | +-Wvla 15 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-4.3-4.4.txt: -------------------------------------------------------------------------------- 1 | +-Wbuiltin-macro-redefined 2 | +-Wenum-compare 3 | +-Wframe-larger-than= 4 | +-Wlarger-than= 5 | +-Wmudflap 6 | +-Wpacked-bitfield-compat 7 | +-Wpsabi 8 | +-Wsync-nand 9 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-4.4-4.5.txt: -------------------------------------------------------------------------------- 1 | +-Wconversion-null 2 | +-Wjump-misses-init 3 | +-Wunsuffixed-float-constants 4 | +-Wunused-result 5 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-4.5-4.6.txt: -------------------------------------------------------------------------------- 1 | +-Wcpp 2 | +-Wdouble-promotion 3 | --Wimport 4 | +-Wimport # DUMMY switch 5 | +-Wnoexcept 6 | +-Wproperty-assign-default 7 | +-Wsuggest-attribute=const 8 | +-Wsuggest-attribute=noreturn 9 | +-Wsuggest-attribute=pure 10 | +-Wtrampolines 11 | --Wunreachable-code 12 | +-Wunreachable-code # DUMMY switch 13 | +-Wunused-but-set-parameter 14 | +-Wunused-but-set-variable 15 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-4.6-4.7.txt: -------------------------------------------------------------------------------- 1 | +-Wc++11-compat 2 | +-Wdelete-non-virtual-dtor 3 | +-Wfree-nonheap-object 4 | +-Winvalid-memory-model 5 | +-Wmaybe-uninitialized 6 | +-Wnarrowing 7 | +-Wstack-usage= 8 | +-Wunused-local-typedefs 9 | +-Wvector-operation-performance 10 | +-Wzero-as-null-pointer-constant 11 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-4.7-4.8.txt: -------------------------------------------------------------------------------- 1 | +-Wabi-tag 2 | +-Waggressive-loop-optimizations 3 | +-Winherited-variadic-ctor 4 | +-Wliteral-suffix 5 | +-Wpedantic 6 | +-Wreturn-local-addr 7 | +-Wsizeof-pointer-memaccess 8 | +-Wsuggest-attribute=format 9 | +-Wuseless-cast 10 | +-Wvarargs 11 | +-Wvirtual-move-assign 12 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-4.8-4.9.txt: -------------------------------------------------------------------------------- 1 | +-Wconditionally-supported 2 | +-Wdate-time 3 | +-Wdelete-incomplete 4 | +-Wfloat-conversion 5 | --Wmudflap 6 | +-Wmudflap # DUMMY switch 7 | +-Wopenmp-simd 8 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-4.9-5.txt: -------------------------------------------------------------------------------- 1 | +-Wabi= 2 | +-Warray-bounds= 3 | +-Wbool-compare 4 | +-Wc++14-compat 5 | +-Wc90-c99-compat 6 | +-Wc99-c11-compat 7 | +-Wchkp 8 | +-Wdesignated-init 9 | +-Wdiscarded-array-qualifiers 10 | +-Wdiscarded-qualifiers 11 | +-Wformat-signedness 12 | +-Wincompatible-pointer-types 13 | +-Wint-conversion 14 | +-Wlogical-not-parentheses 15 | +-Wmemset-transposed-args 16 | +-Wnormalized 17 | +-Wodr 18 | +-Wshadow-ivar 19 | +-Wshift-count-negative 20 | +-Wshift-count-overflow 21 | +-Wsized-deallocation 22 | +-Wsizeof-array-argument 23 | +-Wsuggest-final-methods 24 | +-Wsuggest-final-types 25 | +-Wsuggest-override 26 | +-Wswitch-bool 27 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-5-6.txt: -------------------------------------------------------------------------------- 1 | +-Wduplicated-cond 2 | +-Wframe-address 3 | +-Whsa 4 | +-Wignored-attributes 5 | +-Wlto-type-mismatch 6 | +-Wmisleading-indentation 7 | +-Wmultiple-inheritance 8 | +-Wnamespaces 9 | +-Wnonnull-compare 10 | +-Wnull-dereference 11 | +-Woverride-init-side-effects 12 | +-Wplacement-new 13 | +-Wplacement-new= 14 | +-Wscalar-storage-order 15 | +-Wshift-negative-value 16 | +-Wshift-overflow 17 | +-Wshift-overflow= 18 | +-Wsubobject-linkage 19 | +-Wtautological-compare 20 | +-Wtemplates 21 | +-Wterminate 22 | +-Wunused-const-variable 23 | +-Wunused-const-variable= 24 | +-Wvirtual-inheritance 25 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-6-7.txt: -------------------------------------------------------------------------------- 1 | +-Waligned-new 2 | +-Waligned-new= 3 | +-Walloc-size-larger-than= 4 | +-Walloc-zero 5 | +-Walloca 6 | +-Walloca-larger-than= 7 | +-Wbool-operation 8 | +-Wbuiltin-declaration-mismatch 9 | +-Wc++17-compat 10 | +-Wc++1z-compat 11 | +-Wdangling-else 12 | +-Wduplicate-decl-specifier 13 | +-Wduplicated-branches 14 | +-Wexpansion-to-defined 15 | +-Wformat-overflow 16 | +-Wformat-overflow= 17 | +-Wformat-truncation 18 | +-Wformat-truncation= 19 | +-Wimplicit-fallthrough 20 | +-Wimplicit-fallthrough= 21 | +-Wint-in-bool-context 22 | +-Wmemset-elt-size 23 | +-Wnoexcept-type 24 | +-Wpointer-compare 25 | +-Wregister 26 | +-Wrestrict 27 | +-Wshadow-compatible-local 28 | +-Wshadow-local 29 | +-Wshadow=compatible-local 30 | +-Wshadow=global 31 | +-Wshadow=local 32 | +-Wstringop-overflow 33 | +-Wstringop-overflow= 34 | +-Wswitch-unreachable 35 | +-Wvla-larger-than= 36 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-diff-7-8.txt: -------------------------------------------------------------------------------- 1 | +-Wattribute-alias 2 | +-Wcast-align=strict 3 | +-Wcast-function-type 4 | +-Wcatch-value 5 | +-Wcatch-value= 6 | +-Wclass-memaccess 7 | +-Wextra-semi 8 | +-Wif-not-aligned 9 | +-Wmissing-attributes 10 | +-Wmultistatement-macros 11 | +-Wpacked-not-aligned 12 | +-Wsizeof-pointer-div 13 | +-Wstringop-truncation 14 | +-Wsuggest-attribute=cold 15 | +-Wsuggest-attribute=malloc 16 | --Wunsafe-loop-optimizations 17 | +-Wunsafe-loop-optimizations # DUMMY switch 18 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-3.4.txt: -------------------------------------------------------------------------------- 1 | -pedantic 2 | -Wabi 3 | -Waggregate-return 4 | -Wall 5 | -Wbad-function-cast 6 | -Wcast-align 7 | -Wcast-qual 8 | -Wchar-subscripts 9 | -Wcomment 10 | -Wcomments 11 | -Wconversion 12 | -Wctor-dtor-privacy 13 | -Wdeclaration-after-statement 14 | -Wdeprecated 15 | -Wdeprecated-declarations 16 | -Wdisabled-optimization 17 | -Wdiv-by-zero 18 | -Weffc++ 19 | -Wendif-labels 20 | -Werror-implicit-function-declaration 21 | -Wextra 22 | -Wfloat-equal 23 | -Wformat 24 | -Wformat-extra-args 25 | -Wformat-nonliteral 26 | -Wformat-security 27 | -Wformat-y2k 28 | -Wformat-zero-length 29 | -Wformat= 30 | -Wimplicit 31 | -Wimplicit-function-declaration 32 | -Wimplicit-int 33 | -Wimport 34 | -Winit-self 35 | -Winline 36 | -Winvalid-offsetof 37 | -Winvalid-pch 38 | -Wlarger-than- 39 | -Wlong-long 40 | -Wmain 41 | -Wmissing-braces 42 | -Wmissing-declarations 43 | -Wmissing-format-attribute 44 | -Wmissing-noreturn 45 | -Wmissing-prototypes 46 | -Wmultichar 47 | -Wnested-externs 48 | -Wnon-template-friend 49 | -Wnon-virtual-dtor 50 | -Wnonnull 51 | -Wold-style-cast 52 | -Wold-style-definition 53 | -Woverloaded-virtual 54 | -Wpacked 55 | -Wpadded 56 | -Wparentheses 57 | -Wpmf-conversions 58 | -Wpointer-arith 59 | -Wprotocol 60 | -Wredundant-decls 61 | -Wreorder 62 | -Wreturn-type 63 | -Wselector 64 | -Wsequence-point 65 | -Wshadow 66 | -Wsign-compare 67 | -Wsign-promo 68 | -Wstrict-aliasing 69 | -Wstrict-prototypes 70 | -Wswitch 71 | -Wswitch-default 72 | -Wswitch-enum 73 | -Wsynth 74 | -Wsystem-headers 75 | -Wtraditional 76 | -Wtrigraphs 77 | -Wundeclared-selector 78 | -Wundef 79 | -Wuninitialized 80 | -Wunknown-pragmas 81 | -Wunreachable-code 82 | -Wunused 83 | -Wunused-function 84 | -Wunused-label 85 | -Wunused-macros 86 | -Wunused-parameter 87 | -Wunused-value 88 | -Wunused-variable 89 | -Wwrite-strings 90 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-4.0.txt: -------------------------------------------------------------------------------- 1 | -pedantic 2 | -Wabi 3 | -Waggregate-return 4 | -Wall 5 | -Wbad-function-cast 6 | -Wcast-align 7 | -Wcast-qual 8 | -Wchar-subscripts 9 | -Wcomment 10 | -Wcomments 11 | -Wconversion 12 | -Wctor-dtor-privacy 13 | -Wdeclaration-after-statement 14 | -Wdeprecated 15 | -Wdeprecated-declarations 16 | -Wdisabled-optimization 17 | -Wdiv-by-zero 18 | -Weffc++ 19 | -Wendif-labels 20 | -Werror-implicit-function-declaration 21 | -Wextra 22 | -Wfloat-equal 23 | -Wformat 24 | -Wformat-extra-args 25 | -Wformat-nonliteral 26 | -Wformat-security 27 | -Wformat-y2k 28 | -Wformat-zero-length 29 | -Wformat= 30 | -Wimplicit 31 | -Wimplicit-function-declaration 32 | -Wimplicit-int 33 | -Wimport 34 | -Winit-self 35 | -Winline 36 | -Winvalid-offsetof 37 | -Winvalid-pch 38 | -Wlarger-than- 39 | -Wlong-long 40 | -Wmain 41 | -Wmissing-braces 42 | -Wmissing-declarations 43 | -Wmissing-field-initializers 44 | -Wmissing-format-attribute 45 | -Wmissing-include-dirs 46 | -Wmissing-noreturn 47 | -Wmissing-prototypes 48 | -Wmultichar 49 | -Wnested-externs 50 | -Wnon-template-friend 51 | -Wnon-virtual-dtor 52 | -Wnonnull 53 | -Wold-style-cast 54 | -Wold-style-definition 55 | -Woverloaded-virtual 56 | -Wpacked 57 | -Wpadded 58 | -Wparentheses 59 | -Wpmf-conversions 60 | -Wpointer-arith 61 | -Wpointer-sign 62 | -Wprotocol 63 | -Wredundant-decls 64 | -Wreorder 65 | -Wreturn-type 66 | -Wselector 67 | -Wsequence-point 68 | -Wshadow 69 | -Wsign-compare 70 | -Wsign-promo 71 | -Wstrict-aliasing 72 | -Wstrict-aliasing= 73 | -Wstrict-null-sentinel 74 | -Wstrict-prototypes 75 | -Wswitch 76 | -Wswitch-default 77 | -Wswitch-enum 78 | -Wsynth 79 | -Wsystem-headers 80 | -Wtraditional 81 | -Wtrigraphs 82 | -Wundeclared-selector 83 | -Wundef 84 | -Wuninitialized 85 | -Wunknown-pragmas 86 | -Wunreachable-code 87 | -Wunused 88 | -Wunused-function 89 | -Wunused-label 90 | -Wunused-macros 91 | -Wunused-parameter 92 | -Wunused-value 93 | -Wunused-variable 94 | -Wvariadic-macros 95 | -Wwrite-strings 96 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-4.1.txt: -------------------------------------------------------------------------------- 1 | -pedantic 2 | -Wabi 3 | -Waggregate-return 4 | -Wall 5 | -Wassign-intercept 6 | -Wattributes 7 | -Wbad-function-cast 8 | -Wc++-compat 9 | -Wcast-align 10 | -Wcast-qual 11 | -Wchar-subscripts 12 | -Wcomment 13 | -Wcomments 14 | -Wconversion 15 | -Wctor-dtor-privacy 16 | -Wdeclaration-after-statement 17 | -Wdeprecated 18 | -Wdeprecated-declarations 19 | -Wdisabled-optimization 20 | -Wdiv-by-zero 21 | -Weffc++ 22 | -Wendif-labels 23 | -Werror-implicit-function-declaration 24 | -Wextra 25 | -Wfloat-equal 26 | -Wformat 27 | -Wformat-extra-args 28 | -Wformat-nonliteral 29 | -Wformat-security 30 | -Wformat-y2k 31 | -Wformat-zero-length 32 | -Wformat= 33 | -Wimplicit 34 | -Wimplicit-function-declaration 35 | -Wimplicit-int 36 | -Wimport 37 | -Winit-self 38 | -Winline 39 | -Wint-to-pointer-cast 40 | -Winvalid-offsetof 41 | -Winvalid-pch 42 | -Wlarger-than- 43 | -Wlong-long 44 | -Wmain 45 | -Wmissing-braces 46 | -Wmissing-declarations 47 | -Wmissing-field-initializers 48 | -Wmissing-format-attribute 49 | -Wmissing-include-dirs 50 | -Wmissing-noreturn 51 | -Wmissing-prototypes 52 | -Wmultichar 53 | -Wnested-externs 54 | -Wnon-template-friend 55 | -Wnon-virtual-dtor 56 | -Wnonnull 57 | -Wnormalized= 58 | -Wold-style-cast 59 | -Wold-style-definition 60 | -Woverloaded-virtual 61 | -Wpacked 62 | -Wpadded 63 | -Wparentheses 64 | -Wpmf-conversions 65 | -Wpointer-arith 66 | -Wpointer-sign 67 | -Wpointer-to-int-cast 68 | -Wpragmas 69 | -Wprotocol 70 | -Wredundant-decls 71 | -Wreorder 72 | -Wreturn-type 73 | -Wselector 74 | -Wsequence-point 75 | -Wshadow 76 | -Wsign-compare 77 | -Wsign-promo 78 | -Wstack-protector 79 | -Wstrict-aliasing 80 | -Wstrict-aliasing= 81 | -Wstrict-null-sentinel 82 | -Wstrict-prototypes 83 | -Wstrict-selector-match 84 | -Wswitch 85 | -Wswitch-default 86 | -Wswitch-enum 87 | -Wsynth 88 | -Wsystem-headers 89 | -Wtraditional 90 | -Wtrigraphs 91 | -Wundeclared-selector 92 | -Wundef 93 | -Wuninitialized 94 | -Wunknown-pragmas 95 | -Wunreachable-code 96 | -Wunsafe-loop-optimizations 97 | -Wunused 98 | -Wunused-function 99 | -Wunused-label 100 | -Wunused-macros 101 | -Wunused-parameter 102 | -Wunused-value 103 | -Wunused-variable 104 | -Wvariadic-macros 105 | -Wvolatile-register-var 106 | -Wwrite-strings 107 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-4.2.txt: -------------------------------------------------------------------------------- 1 | -pedantic 2 | -Wabi 3 | -Waddress 4 | -Waggregate-return 5 | -Wall 6 | -Wassign-intercept 7 | -Wattributes 8 | -Wbad-function-cast 9 | -Wc++-compat 10 | -Wcast-align 11 | -Wcast-qual 12 | -Wchar-subscripts 13 | -Wcomment 14 | -Wcomments 15 | -Wconversion 16 | -Wctor-dtor-privacy 17 | -Wdeclaration-after-statement 18 | -Wdeprecated 19 | -Wdeprecated-declarations 20 | -Wdisabled-optimization 21 | -Wdiv-by-zero 22 | -Weffc++ 23 | -Wendif-labels 24 | -Werror-implicit-function-declaration 25 | -Wextra 26 | -Wfloat-equal 27 | -Wformat 28 | -Wformat-extra-args 29 | -Wformat-nonliteral 30 | -Wformat-security 31 | -Wformat-y2k 32 | -Wformat-zero-length 33 | -Wformat= 34 | -Wimplicit 35 | -Wimplicit-function-declaration 36 | -Wimplicit-int 37 | -Wimport 38 | -Winit-self 39 | -Winline 40 | -Wint-to-pointer-cast 41 | -Winvalid-offsetof 42 | -Winvalid-pch 43 | -Wlarger-than- 44 | -Wlong-long 45 | -Wmain 46 | -Wmissing-braces 47 | -Wmissing-declarations 48 | -Wmissing-field-initializers 49 | -Wmissing-format-attribute 50 | -Wmissing-include-dirs 51 | -Wmissing-noreturn 52 | -Wmissing-prototypes 53 | -Wmultichar 54 | -Wnested-externs 55 | -Wnon-template-friend 56 | -Wnon-virtual-dtor 57 | -Wnonnull 58 | -Wnormalized= 59 | -Wold-style-cast 60 | -Wold-style-definition 61 | -Woverflow 62 | -Woverlength-strings 63 | -Woverloaded-virtual 64 | -Woverride-init 65 | -Wpacked 66 | -Wpadded 67 | -Wparentheses 68 | -Wpmf-conversions 69 | -Wpointer-arith 70 | -Wpointer-sign 71 | -Wpointer-to-int-cast 72 | -Wpragmas 73 | -Wprotocol 74 | -Wredundant-decls 75 | -Wreorder 76 | -Wreturn-type 77 | -Wselector 78 | -Wsequence-point 79 | -Wshadow 80 | -Wsign-compare 81 | -Wsign-promo 82 | -Wstack-protector 83 | -Wstrict-aliasing 84 | -Wstrict-aliasing= 85 | -Wstrict-null-sentinel 86 | -Wstrict-overflow 87 | -Wstrict-overflow= 88 | -Wstrict-prototypes 89 | -Wstrict-selector-match 90 | -Wswitch 91 | -Wswitch-default 92 | -Wswitch-enum 93 | -Wsynth 94 | -Wsystem-headers 95 | -Wtraditional 96 | -Wtrigraphs 97 | -Wundeclared-selector 98 | -Wundef 99 | -Wuninitialized 100 | -Wunknown-pragmas 101 | -Wunreachable-code 102 | -Wunsafe-loop-optimizations 103 | -Wunused 104 | -Wunused-function 105 | -Wunused-label 106 | -Wunused-macros 107 | -Wunused-parameter 108 | -Wunused-value 109 | -Wunused-variable 110 | -Wvariadic-macros 111 | -Wvolatile-register-var 112 | -Wwrite-strings 113 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-4.3.txt: -------------------------------------------------------------------------------- 1 | -pedantic 2 | -Wabi 3 | -Waddress 4 | -Waggregate-return 5 | -Wall 6 | -Warray-bounds 7 | -Wassign-intercept 8 | -Wattributes 9 | -Wbad-function-cast 10 | -Wc++-compat 11 | -Wc++0x-compat 12 | -Wcast-align 13 | -Wcast-qual 14 | -Wchar-subscripts 15 | -Wclobbered 16 | -Wcomment 17 | -Wcomments 18 | -Wconversion 19 | -Wcoverage-mismatch 20 | -Wctor-dtor-privacy 21 | -Wdeclaration-after-statement 22 | -Wdeprecated 23 | -Wdeprecated-declarations 24 | -Wdisabled-optimization 25 | -Wdiv-by-zero 26 | -Weffc++ 27 | -Wempty-body 28 | -Wendif-labels 29 | -Werror-implicit-function-declaration 30 | -Wextra 31 | -Wfloat-equal 32 | -Wformat 33 | -Wformat-contains-nul 34 | -Wformat-extra-args 35 | -Wformat-nonliteral 36 | -Wformat-security 37 | -Wformat-y2k 38 | -Wformat-zero-length 39 | -Wformat= 40 | -Wignored-qualifiers 41 | -Wimplicit 42 | -Wimplicit-function-declaration 43 | -Wimplicit-int 44 | -Wimport 45 | -Winit-self 46 | -Winline 47 | -Wint-to-pointer-cast 48 | -Winvalid-offsetof 49 | -Winvalid-pch 50 | -Wlarger-than- 51 | -Wlogical-op 52 | -Wlong-long 53 | -Wmain 54 | -Wmissing-braces 55 | -Wmissing-declarations 56 | -Wmissing-field-initializers 57 | -Wmissing-format-attribute 58 | -Wmissing-include-dirs 59 | -Wmissing-noreturn 60 | -Wmissing-parameter-type 61 | -Wmissing-prototypes 62 | -Wmultichar 63 | -Wnested-externs 64 | -Wnon-template-friend 65 | -Wnon-virtual-dtor 66 | -Wnonnull 67 | -Wnormalized= 68 | -Wold-style-cast 69 | -Wold-style-declaration 70 | -Wold-style-definition 71 | -Woverflow 72 | -Woverlength-strings 73 | -Woverloaded-virtual 74 | -Woverride-init 75 | -Wpacked 76 | -Wpadded 77 | -Wparentheses 78 | -Wpmf-conversions 79 | -Wpointer-arith 80 | -Wpointer-sign 81 | -Wpointer-to-int-cast 82 | -Wpragmas 83 | -Wprotocol 84 | -Wredundant-decls 85 | -Wreorder 86 | -Wreturn-type 87 | -Wselector 88 | -Wsequence-point 89 | -Wshadow 90 | -Wsign-compare 91 | -Wsign-conversion 92 | -Wsign-promo 93 | -Wstack-protector 94 | -Wstrict-aliasing 95 | -Wstrict-aliasing= 96 | -Wstrict-null-sentinel 97 | -Wstrict-overflow 98 | -Wstrict-overflow= 99 | -Wstrict-prototypes 100 | -Wstrict-selector-match 101 | -Wswitch 102 | -Wswitch-default 103 | -Wswitch-enum 104 | -Wsynth 105 | -Wsystem-headers 106 | -Wtraditional 107 | -Wtraditional-conversion 108 | -Wtrigraphs 109 | -Wtype-limits 110 | -Wundeclared-selector 111 | -Wundef 112 | -Wuninitialized 113 | -Wunknown-pragmas 114 | -Wunreachable-code 115 | -Wunsafe-loop-optimizations 116 | -Wunused 117 | -Wunused-function 118 | -Wunused-label 119 | -Wunused-macros 120 | -Wunused-parameter 121 | -Wunused-value 122 | -Wunused-variable 123 | -Wvariadic-macros 124 | -Wvla 125 | -Wvolatile-register-var 126 | -Wwrite-strings 127 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-4.4.txt: -------------------------------------------------------------------------------- 1 | -pedantic 2 | -Wabi 3 | -Waddress 4 | -Waggregate-return 5 | -Wall 6 | -Warray-bounds 7 | -Wassign-intercept 8 | -Wattributes 9 | -Wbad-function-cast 10 | -Wbuiltin-macro-redefined 11 | -Wc++-compat 12 | -Wc++0x-compat 13 | -Wcast-align 14 | -Wcast-qual 15 | -Wchar-subscripts 16 | -Wclobbered 17 | -Wcomment 18 | -Wcomments 19 | -Wconversion 20 | -Wcoverage-mismatch 21 | -Wctor-dtor-privacy 22 | -Wdeclaration-after-statement 23 | -Wdeprecated 24 | -Wdeprecated-declarations 25 | -Wdisabled-optimization 26 | -Wdiv-by-zero 27 | -Weffc++ 28 | -Wempty-body 29 | -Wendif-labels 30 | -Wenum-compare 31 | -Werror-implicit-function-declaration 32 | -Wextra 33 | -Wfloat-equal 34 | -Wformat 35 | -Wformat-contains-nul 36 | -Wformat-extra-args 37 | -Wformat-nonliteral 38 | -Wformat-security 39 | -Wformat-y2k 40 | -Wformat-zero-length 41 | -Wformat= 42 | -Wframe-larger-than= 43 | -Wignored-qualifiers 44 | -Wimplicit 45 | -Wimplicit-function-declaration 46 | -Wimplicit-int 47 | -Wimport 48 | -Winit-self 49 | -Winline 50 | -Wint-to-pointer-cast 51 | -Winvalid-offsetof 52 | -Winvalid-pch 53 | -Wlarger-than- 54 | -Wlarger-than= 55 | -Wlogical-op 56 | -Wlong-long 57 | -Wmain 58 | -Wmissing-braces 59 | -Wmissing-declarations 60 | -Wmissing-field-initializers 61 | -Wmissing-format-attribute 62 | -Wmissing-include-dirs 63 | -Wmissing-noreturn 64 | -Wmissing-parameter-type 65 | -Wmissing-prototypes 66 | -Wmudflap 67 | -Wmultichar 68 | -Wnested-externs 69 | -Wnon-template-friend 70 | -Wnon-virtual-dtor 71 | -Wnonnull 72 | -Wnormalized= 73 | -Wold-style-cast 74 | -Wold-style-declaration 75 | -Wold-style-definition 76 | -Woverflow 77 | -Woverlength-strings 78 | -Woverloaded-virtual 79 | -Woverride-init 80 | -Wpacked 81 | -Wpacked-bitfield-compat 82 | -Wpadded 83 | -Wparentheses 84 | -Wpmf-conversions 85 | -Wpointer-arith 86 | -Wpointer-sign 87 | -Wpointer-to-int-cast 88 | -Wpragmas 89 | -Wprotocol 90 | -Wpsabi 91 | -Wredundant-decls 92 | -Wreorder 93 | -Wreturn-type 94 | -Wselector 95 | -Wsequence-point 96 | -Wshadow 97 | -Wsign-compare 98 | -Wsign-conversion 99 | -Wsign-promo 100 | -Wstack-protector 101 | -Wstrict-aliasing 102 | -Wstrict-aliasing= 103 | -Wstrict-null-sentinel 104 | -Wstrict-overflow 105 | -Wstrict-overflow= 106 | -Wstrict-prototypes 107 | -Wstrict-selector-match 108 | -Wswitch 109 | -Wswitch-default 110 | -Wswitch-enum 111 | -Wsync-nand 112 | -Wsynth 113 | -Wsystem-headers 114 | -Wtraditional 115 | -Wtraditional-conversion 116 | -Wtrigraphs 117 | -Wtype-limits 118 | -Wundeclared-selector 119 | -Wundef 120 | -Wuninitialized 121 | -Wunknown-pragmas 122 | -Wunreachable-code 123 | -Wunsafe-loop-optimizations 124 | -Wunused 125 | -Wunused-function 126 | -Wunused-label 127 | -Wunused-macros 128 | -Wunused-parameter 129 | -Wunused-value 130 | -Wunused-variable 131 | -Wvariadic-macros 132 | -Wvla 133 | -Wvolatile-register-var 134 | -Wwrite-strings 135 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-4.5.txt: -------------------------------------------------------------------------------- 1 | -pedantic 2 | -Wabi 3 | -Waddress 4 | -Waggregate-return 5 | -Wall 6 | -Warray-bounds 7 | -Wassign-intercept 8 | -Wattributes 9 | -Wbad-function-cast 10 | -Wbuiltin-macro-redefined 11 | -Wc++-compat 12 | -Wc++0x-compat 13 | -Wcast-align 14 | -Wcast-qual 15 | -Wchar-subscripts 16 | -Wclobbered 17 | -Wcomment 18 | -Wcomments 19 | -Wconversion 20 | -Wconversion-null 21 | -Wcoverage-mismatch 22 | -Wctor-dtor-privacy 23 | -Wdeclaration-after-statement 24 | -Wdeprecated 25 | -Wdeprecated-declarations 26 | -Wdisabled-optimization 27 | -Wdiv-by-zero 28 | -Weffc++ 29 | -Wempty-body 30 | -Wendif-labels 31 | -Wenum-compare 32 | -Werror-implicit-function-declaration 33 | -Wextra 34 | -Wfloat-equal 35 | -Wformat 36 | -Wformat-contains-nul 37 | -Wformat-extra-args 38 | -Wformat-nonliteral 39 | -Wformat-security 40 | -Wformat-y2k 41 | -Wformat-zero-length 42 | -Wformat= 43 | -Wframe-larger-than= 44 | -Wignored-qualifiers 45 | -Wimplicit 46 | -Wimplicit-function-declaration 47 | -Wimplicit-int 48 | -Wimport 49 | -Winit-self 50 | -Winline 51 | -Wint-to-pointer-cast 52 | -Winvalid-offsetof 53 | -Winvalid-pch 54 | -Wjump-misses-init 55 | -Wlarger-than- 56 | -Wlarger-than= 57 | -Wlogical-op 58 | -Wlong-long 59 | -Wmain 60 | -Wmissing-braces 61 | -Wmissing-declarations 62 | -Wmissing-field-initializers 63 | -Wmissing-format-attribute 64 | -Wmissing-include-dirs 65 | -Wmissing-noreturn 66 | -Wmissing-parameter-type 67 | -Wmissing-prototypes 68 | -Wmudflap 69 | -Wmultichar 70 | -Wnested-externs 71 | -Wnon-template-friend 72 | -Wnon-virtual-dtor 73 | -Wnonnull 74 | -Wnormalized= 75 | -Wold-style-cast 76 | -Wold-style-declaration 77 | -Wold-style-definition 78 | -Woverflow 79 | -Woverlength-strings 80 | -Woverloaded-virtual 81 | -Woverride-init 82 | -Wpacked 83 | -Wpacked-bitfield-compat 84 | -Wpadded 85 | -Wparentheses 86 | -Wpmf-conversions 87 | -Wpointer-arith 88 | -Wpointer-sign 89 | -Wpointer-to-int-cast 90 | -Wpragmas 91 | -Wprotocol 92 | -Wpsabi 93 | -Wredundant-decls 94 | -Wreorder 95 | -Wreturn-type 96 | -Wselector 97 | -Wsequence-point 98 | -Wshadow 99 | -Wsign-compare 100 | -Wsign-conversion 101 | -Wsign-promo 102 | -Wstack-protector 103 | -Wstrict-aliasing 104 | -Wstrict-aliasing= 105 | -Wstrict-null-sentinel 106 | -Wstrict-overflow 107 | -Wstrict-overflow= 108 | -Wstrict-prototypes 109 | -Wstrict-selector-match 110 | -Wswitch 111 | -Wswitch-default 112 | -Wswitch-enum 113 | -Wsync-nand 114 | -Wsynth 115 | -Wsystem-headers 116 | -Wtraditional 117 | -Wtraditional-conversion 118 | -Wtrigraphs 119 | -Wtype-limits 120 | -Wundeclared-selector 121 | -Wundef 122 | -Wuninitialized 123 | -Wunknown-pragmas 124 | -Wunreachable-code 125 | -Wunsafe-loop-optimizations 126 | -Wunsuffixed-float-constants 127 | -Wunused 128 | -Wunused-function 129 | -Wunused-label 130 | -Wunused-macros 131 | -Wunused-parameter 132 | -Wunused-result 133 | -Wunused-value 134 | -Wunused-variable 135 | -Wvariadic-macros 136 | -Wvla 137 | -Wvolatile-register-var 138 | -Wwrite-strings 139 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-4.6.txt: -------------------------------------------------------------------------------- 1 | -pedantic 2 | -Wabi 3 | -Waddress 4 | -Waggregate-return 5 | -Wall 6 | -Warray-bounds 7 | -Wassign-intercept 8 | -Wattributes 9 | -Wbad-function-cast 10 | -Wbuiltin-macro-redefined 11 | -Wc++-compat 12 | -Wc++0x-compat 13 | -Wcast-align 14 | -Wcast-qual 15 | -Wchar-subscripts 16 | -Wclobbered 17 | -Wcomment 18 | -Wconversion 19 | -Wconversion-null 20 | -Wcoverage-mismatch 21 | -Wcpp 22 | -Wctor-dtor-privacy 23 | -Wdeclaration-after-statement 24 | -Wdeprecated 25 | -Wdeprecated-declarations 26 | -Wdisabled-optimization 27 | -Wdiv-by-zero 28 | -Wdouble-promotion 29 | -Weffc++ 30 | -Wempty-body 31 | -Wendif-labels 32 | -Wenum-compare 33 | -Wextra 34 | -Wfloat-equal 35 | -Wformat 36 | -Wformat-contains-nul 37 | -Wformat-extra-args 38 | -Wformat-nonliteral 39 | -Wformat-security 40 | -Wformat-y2k 41 | -Wformat-zero-length 42 | -Wformat= 43 | -Wframe-larger-than= 44 | -Wignored-qualifiers 45 | -Wimplicit 46 | -Wimplicit-function-declaration 47 | -Wimplicit-int 48 | -Wimport # DUMMY switch 49 | -Winit-self 50 | -Winline 51 | -Wint-to-pointer-cast 52 | -Winvalid-offsetof 53 | -Winvalid-pch 54 | -Wjump-misses-init 55 | -Wlarger-than= 56 | -Wlogical-op 57 | -Wlong-long 58 | -Wmain 59 | -Wmissing-braces 60 | -Wmissing-declarations 61 | -Wmissing-field-initializers 62 | -Wmissing-format-attribute 63 | -Wmissing-include-dirs 64 | -Wmissing-noreturn 65 | -Wmissing-parameter-type 66 | -Wmissing-prototypes 67 | -Wmudflap 68 | -Wmultichar 69 | -Wnested-externs 70 | -Wnoexcept 71 | -Wnon-template-friend 72 | -Wnon-virtual-dtor 73 | -Wnonnull 74 | -Wnormalized= 75 | -Wold-style-cast 76 | -Wold-style-declaration 77 | -Wold-style-definition 78 | -Woverflow 79 | -Woverlength-strings 80 | -Woverloaded-virtual 81 | -Woverride-init 82 | -Wpacked 83 | -Wpacked-bitfield-compat 84 | -Wpadded 85 | -Wparentheses 86 | -Wpmf-conversions 87 | -Wpointer-arith 88 | -Wpointer-sign 89 | -Wpointer-to-int-cast 90 | -Wpragmas 91 | -Wproperty-assign-default 92 | -Wprotocol 93 | -Wpsabi 94 | -Wredundant-decls 95 | -Wreorder 96 | -Wreturn-type 97 | -Wselector 98 | -Wsequence-point 99 | -Wshadow 100 | -Wsign-compare 101 | -Wsign-conversion 102 | -Wsign-promo 103 | -Wstack-protector 104 | -Wstrict-aliasing 105 | -Wstrict-aliasing= 106 | -Wstrict-null-sentinel 107 | -Wstrict-overflow 108 | -Wstrict-overflow= 109 | -Wstrict-prototypes 110 | -Wstrict-selector-match 111 | -Wsuggest-attribute=const 112 | -Wsuggest-attribute=noreturn 113 | -Wsuggest-attribute=pure 114 | -Wswitch 115 | -Wswitch-default 116 | -Wswitch-enum 117 | -Wsync-nand 118 | -Wsynth 119 | -Wsystem-headers 120 | -Wtraditional 121 | -Wtraditional-conversion 122 | -Wtrampolines 123 | -Wtrigraphs 124 | -Wtype-limits 125 | -Wundeclared-selector 126 | -Wundef 127 | -Wuninitialized 128 | -Wunknown-pragmas 129 | -Wunreachable-code # DUMMY switch 130 | -Wunsafe-loop-optimizations 131 | -Wunsuffixed-float-constants 132 | -Wunused 133 | -Wunused-but-set-parameter 134 | -Wunused-but-set-variable 135 | -Wunused-function 136 | -Wunused-label 137 | -Wunused-macros 138 | -Wunused-parameter 139 | -Wunused-result 140 | -Wunused-value 141 | -Wunused-variable 142 | -Wvariadic-macros 143 | -Wvla 144 | -Wvolatile-register-var 145 | -Wwrite-strings 146 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-4.7.txt: -------------------------------------------------------------------------------- 1 | -pedantic 2 | -Wabi 3 | -Waddress 4 | -Waggregate-return 5 | -Wall 6 | -Warray-bounds 7 | -Wassign-intercept 8 | -Wattributes 9 | -Wbad-function-cast 10 | -Wbuiltin-macro-redefined 11 | -Wc++-compat 12 | -Wc++0x-compat 13 | -Wcast-align 14 | -Wcast-qual 15 | -Wchar-subscripts 16 | -Wclobbered 17 | -Wcomment 18 | -Wconversion 19 | -Wconversion-null 20 | -Wcoverage-mismatch 21 | -Wcpp 22 | -Wctor-dtor-privacy 23 | -Wdeclaration-after-statement 24 | -Wdelete-non-virtual-dtor 25 | -Wdeprecated 26 | -Wdeprecated-declarations 27 | -Wdisabled-optimization 28 | -Wdiv-by-zero 29 | -Wdouble-promotion 30 | -Weffc++ 31 | -Wempty-body 32 | -Wendif-labels 33 | -Wenum-compare 34 | -Wextra 35 | -Wfloat-equal 36 | -Wformat 37 | -Wformat-contains-nul 38 | -Wformat-extra-args 39 | -Wformat-nonliteral 40 | -Wformat-security 41 | -Wformat-y2k 42 | -Wformat-zero-length 43 | -Wformat= 44 | -Wframe-larger-than= 45 | -Wfree-nonheap-object 46 | -Wignored-qualifiers 47 | -Wimplicit 48 | -Wimplicit-function-declaration 49 | -Wimplicit-int 50 | -Wimport # DUMMY switch 51 | -Winit-self 52 | -Winline 53 | -Wint-to-pointer-cast 54 | -Winvalid-memory-model 55 | -Winvalid-offsetof 56 | -Winvalid-pch 57 | -Wjump-misses-init 58 | -Wlarger-than= 59 | -Wlogical-op 60 | -Wlong-long 61 | -Wmain 62 | -Wmaybe-uninitialized 63 | -Wmissing-braces 64 | -Wmissing-declarations 65 | -Wmissing-field-initializers 66 | -Wmissing-format-attribute 67 | -Wmissing-include-dirs 68 | -Wmissing-noreturn 69 | -Wmissing-parameter-type 70 | -Wmissing-prototypes 71 | -Wmudflap 72 | -Wmultichar 73 | -Wnarrowing 74 | -Wnested-externs 75 | -Wnoexcept 76 | -Wnon-template-friend 77 | -Wnon-virtual-dtor 78 | -Wnonnull 79 | -Wnormalized= 80 | -Wold-style-cast 81 | -Wold-style-declaration 82 | -Wold-style-definition 83 | -Woverflow 84 | -Woverlength-strings 85 | -Woverloaded-virtual 86 | -Woverride-init 87 | -Wpacked 88 | -Wpacked-bitfield-compat 89 | -Wpadded 90 | -Wparentheses 91 | -Wpmf-conversions 92 | -Wpointer-arith 93 | -Wpointer-sign 94 | -Wpointer-to-int-cast 95 | -Wpragmas 96 | -Wproperty-assign-default 97 | -Wprotocol 98 | -Wpsabi 99 | -Wredundant-decls 100 | -Wreorder 101 | -Wreturn-type 102 | -Wselector 103 | -Wsequence-point 104 | -Wshadow 105 | -Wsign-compare 106 | -Wsign-conversion 107 | -Wsign-promo 108 | -Wstack-protector 109 | -Wstack-usage= 110 | -Wstrict-aliasing 111 | -Wstrict-aliasing= 112 | -Wstrict-null-sentinel 113 | -Wstrict-overflow 114 | -Wstrict-overflow= 115 | -Wstrict-prototypes 116 | -Wstrict-selector-match 117 | -Wsuggest-attribute=const 118 | -Wsuggest-attribute=noreturn 119 | -Wsuggest-attribute=pure 120 | -Wswitch 121 | -Wswitch-default 122 | -Wswitch-enum 123 | -Wsync-nand 124 | -Wsynth 125 | -Wsystem-headers 126 | -Wtraditional 127 | -Wtraditional-conversion 128 | -Wtrampolines 129 | -Wtrigraphs 130 | -Wtype-limits 131 | -Wundeclared-selector 132 | -Wundef 133 | -Wuninitialized 134 | -Wunknown-pragmas 135 | -Wunreachable-code # DUMMY switch 136 | -Wunsafe-loop-optimizations 137 | -Wunsuffixed-float-constants 138 | -Wunused 139 | -Wunused-but-set-parameter 140 | -Wunused-but-set-variable 141 | -Wunused-function 142 | -Wunused-label 143 | -Wunused-local-typedefs 144 | -Wunused-macros 145 | -Wunused-parameter 146 | -Wunused-result 147 | -Wunused-value 148 | -Wunused-variable 149 | -Wvariadic-macros 150 | -Wvector-operation-performance 151 | -Wvla 152 | -Wvolatile-register-var 153 | -Wwrite-strings 154 | -Wzero-as-null-pointer-constant 155 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-4.8.txt: -------------------------------------------------------------------------------- 1 | -Wabi 2 | -Wabi-tag 3 | -Waggregate-return 4 | -Waggressive-loop-optimizations 5 | -Wall 6 | # -Waddress 7 | # -Warray-bounds 8 | # -Wc++0x-compat 9 | # -Wnarrowing 10 | # -Wchar-subscripts 11 | # -Wdelete-non-virtual-dtor 12 | # -Wenum-compare 13 | # -Wformat= 14 | # -Wformat-contains-nul 15 | # -Wformat-extra-args 16 | # -Wformat-nonliteral 17 | # -Wformat-security 18 | # -Wformat-y2k 19 | # -Wformat-zero-length 20 | # -Wnonnull 21 | # -Wimplicit 22 | # -Wimplicit-function-declaration 23 | # -Wimplicit-int 24 | # -Winit-self 25 | # -Wmain 26 | # -Wmaybe-uninitialized 27 | # -Wmissing-braces 28 | # -Wnarrowing 29 | # -Wnonnull 30 | # -Wparentheses 31 | # -Wpointer-sign 32 | # -Wreorder 33 | # -Wreturn-type 34 | # -Wsequence-point 35 | # -Wsign-compare 36 | # -Wsizeof-pointer-memaccess 37 | # -Wstrict-aliasing= 38 | # -Wstrict-overflow= 39 | # -Wswitch 40 | # -Wuninitialized 41 | # -Wmaybe-uninitialized 42 | # -Wunknown-pragmas 43 | # -Wunused 44 | # -Wunused-but-set-variable 45 | # -Wunused-function 46 | # -Wunused-label 47 | # -Wunused-local-typedefs 48 | # -Wunused-value 49 | # -Wunused-variable 50 | # -Wvolatile-register-var 51 | -Wassign-intercept 52 | -Wattributes 53 | -Wbad-function-cast 54 | -Wbuiltin-macro-redefined 55 | -Wc++-compat 56 | # -Wenum-compare 57 | -Wcast-align 58 | -Wcast-qual 59 | -Wcomment 60 | -Wconversion 61 | # -Wsign-conversion 62 | -Wconversion-null 63 | -Wcoverage-mismatch 64 | -Wcpp 65 | -Wctor-dtor-privacy 66 | -Wdeclaration-after-statement 67 | -Wdeprecated 68 | -Wdeprecated-declarations 69 | -Wdisabled-optimization 70 | -Wdiv-by-zero 71 | -Wdouble-promotion 72 | -Weffc++ 73 | # -Wdelete-non-virtual-dtor 74 | -Wendif-labels 75 | -Wextra 76 | # -Wclobbered 77 | # -Wempty-body 78 | # -Wignored-qualifiers 79 | # -Wmissing-field-initializers 80 | # -Wmissing-parameter-type 81 | # -Wold-style-declaration 82 | # -Woverride-init 83 | # -Wsign-compare 84 | # -Wtype-limits 85 | # -Wuninitialized 86 | # -Wmaybe-uninitialized 87 | # -Wunused-but-set-parameter 88 | # -Wunused-parameter 89 | -Wfloat-equal 90 | -Wframe-larger-than= 91 | -Wfree-nonheap-object 92 | -Wimport # DUMMY switch 93 | -Winherited-variadic-ctor 94 | -Winline 95 | -Wint-to-pointer-cast 96 | -Winvalid-memory-model 97 | -Winvalid-offsetof 98 | -Winvalid-pch 99 | -Wjump-misses-init 100 | -Wlarger-than= 101 | -Wliteral-suffix 102 | -Wlogical-op 103 | -Wlong-long 104 | -Wmissing-declarations 105 | -Wmissing-include-dirs 106 | -Wmissing-prototypes 107 | -Wmudflap 108 | -Wmultichar 109 | -Wnested-externs 110 | -Wnoexcept 111 | -Wnon-template-friend 112 | -Wnon-virtual-dtor 113 | -Wnormalized= 114 | -Wold-style-cast 115 | -Wold-style-definition 116 | -Woverflow 117 | -Woverloaded-virtual 118 | -Wpacked 119 | -Wpacked-bitfield-compat 120 | -Wpadded 121 | -Wpedantic 122 | # -Wmain 123 | # -Woverlength-strings 124 | # -Wpointer-sign 125 | -Wpmf-conversions 126 | -Wpointer-arith 127 | -Wpointer-to-int-cast 128 | -Wpragmas 129 | -Wproperty-assign-default 130 | -Wprotocol 131 | -Wpsabi 132 | -Wredundant-decls 133 | -Wreturn-local-addr 134 | -Wselector 135 | -Wshadow 136 | -Wsign-promo 137 | -Wstack-protector 138 | -Wstack-usage= 139 | -Wstrict-aliasing 140 | -Wstrict-null-sentinel 141 | -Wstrict-overflow 142 | -Wstrict-prototypes 143 | -Wstrict-selector-match 144 | -Wsuggest-attribute=const 145 | -Wsuggest-attribute=format 146 | -Wsuggest-attribute=noreturn 147 | -Wsuggest-attribute=pure 148 | -Wswitch-default 149 | -Wswitch-enum 150 | -Wsync-nand 151 | -Wsynth 152 | -Wsystem-headers 153 | -Wtraditional 154 | -Wtraditional-conversion 155 | -Wtrampolines 156 | -Wtrigraphs 157 | -Wundeclared-selector 158 | -Wundef 159 | -Wunreachable-code # DUMMY switch 160 | -Wunsafe-loop-optimizations 161 | -Wunsuffixed-float-constants 162 | -Wunused-macros 163 | -Wunused-result 164 | -Wuseless-cast 165 | -Wvarargs 166 | -Wvariadic-macros 167 | -Wvector-operation-performance 168 | -Wvirtual-move-assign 169 | -Wvla 170 | -Wwrite-strings 171 | -Wzero-as-null-pointer-constant 172 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-4.9.txt: -------------------------------------------------------------------------------- 1 | -Wabi 2 | -Wabi-tag 3 | -Waggregate-return 4 | -Waggressive-loop-optimizations 5 | -Wall 6 | # -Waddress 7 | # -Warray-bounds 8 | # -Wc++0x-compat 9 | # -Wnarrowing 10 | # -Wchar-subscripts 11 | # -Wdelete-non-virtual-dtor 12 | # -Wenum-compare 13 | # -Wformat= 14 | # -Wformat-contains-nul 15 | # -Wformat-extra-args 16 | # -Wformat-nonliteral 17 | # -Wformat-security 18 | # -Wformat-y2k 19 | # -Wformat-zero-length 20 | # -Wnonnull 21 | # -Wimplicit 22 | # -Wimplicit-function-declaration 23 | # -Wimplicit-int 24 | # -Winit-self 25 | # -Wmain 26 | # -Wmaybe-uninitialized 27 | # -Wmissing-braces 28 | # -Wnarrowing 29 | # -Wnonnull 30 | # -Wopenmp-simd 31 | # -Wparentheses 32 | # -Wpointer-sign 33 | # -Wreorder 34 | # -Wreturn-type 35 | # -Wsequence-point 36 | # -Wsign-compare 37 | # -Wsizeof-pointer-memaccess 38 | # -Wstrict-aliasing= 39 | # -Wstrict-overflow= 40 | # -Wswitch 41 | # -Wuninitialized 42 | # -Wmaybe-uninitialized 43 | # -Wunknown-pragmas 44 | # -Wunused 45 | # -Wunused-but-set-variable 46 | # -Wunused-function 47 | # -Wunused-label 48 | # -Wunused-local-typedefs 49 | # -Wunused-value 50 | # -Wunused-variable 51 | # -Wvolatile-register-var 52 | -Wassign-intercept 53 | -Wattributes 54 | -Wbad-function-cast 55 | -Wbuiltin-macro-redefined 56 | -Wc++-compat 57 | # -Wenum-compare 58 | -Wcast-align 59 | -Wcast-qual 60 | -Wcomment 61 | -Wconditionally-supported 62 | -Wconversion 63 | # -Wfloat-conversion 64 | # -Wsign-conversion 65 | -Wconversion-null 66 | -Wcoverage-mismatch 67 | -Wcpp 68 | -Wctor-dtor-privacy 69 | -Wdate-time 70 | -Wdeclaration-after-statement 71 | -Wdelete-incomplete 72 | -Wdeprecated 73 | -Wdeprecated-declarations 74 | -Wdisabled-optimization 75 | -Wdiv-by-zero 76 | -Wdouble-promotion 77 | -Weffc++ 78 | # -Wdelete-non-virtual-dtor 79 | # -Wnon-virtual-dtor 80 | -Wendif-labels 81 | -Wextra 82 | # -Wclobbered 83 | # -Wempty-body 84 | # -Wignored-qualifiers 85 | # -Wmissing-field-initializers 86 | # -Wmissing-parameter-type 87 | # -Wold-style-declaration 88 | # -Woverride-init 89 | # -Wsign-compare 90 | # -Wtype-limits 91 | # -Wuninitialized 92 | # -Wmaybe-uninitialized 93 | # -Wunused-but-set-parameter 94 | # -Wunused-parameter 95 | -Wfloat-equal 96 | -Wframe-larger-than= 97 | -Wfree-nonheap-object 98 | -Wimport # DUMMY switch 99 | -Winherited-variadic-ctor 100 | -Winline 101 | -Wint-to-pointer-cast 102 | -Winvalid-memory-model 103 | -Winvalid-offsetof 104 | -Winvalid-pch 105 | -Wjump-misses-init 106 | -Wlarger-than= 107 | -Wliteral-suffix 108 | -Wlogical-op 109 | -Wlong-long 110 | -Wmissing-declarations 111 | -Wmissing-include-dirs 112 | -Wmissing-prototypes 113 | -Wmudflap # DUMMY switch 114 | -Wmultichar 115 | -Wnested-externs 116 | -Wnoexcept 117 | -Wnon-template-friend 118 | -Wnormalized= 119 | -Wold-style-cast 120 | -Wold-style-definition 121 | -Woverflow 122 | -Woverloaded-virtual 123 | -Wpacked 124 | -Wpacked-bitfield-compat 125 | -Wpadded 126 | -Wpedantic 127 | # -Wmain 128 | # -Woverlength-strings 129 | # -Wpointer-arith 130 | # -Wpointer-sign 131 | -Wpmf-conversions 132 | -Wpointer-to-int-cast 133 | -Wpragmas 134 | -Wproperty-assign-default 135 | -Wprotocol 136 | -Wpsabi 137 | -Wredundant-decls 138 | -Wreturn-local-addr 139 | -Wselector 140 | -Wshadow 141 | -Wsign-promo 142 | -Wstack-protector 143 | -Wstack-usage= 144 | -Wstrict-aliasing 145 | -Wstrict-null-sentinel 146 | -Wstrict-overflow 147 | -Wstrict-prototypes 148 | -Wstrict-selector-match 149 | -Wsuggest-attribute=const 150 | -Wsuggest-attribute=format 151 | -Wsuggest-attribute=noreturn 152 | -Wsuggest-attribute=pure 153 | -Wswitch-default 154 | -Wswitch-enum 155 | -Wsync-nand 156 | -Wsynth 157 | -Wsystem-headers 158 | -Wtraditional 159 | -Wtraditional-conversion 160 | -Wtrampolines 161 | -Wtrigraphs 162 | -Wundeclared-selector 163 | -Wundef 164 | -Wunreachable-code # DUMMY switch 165 | -Wunsafe-loop-optimizations 166 | -Wunsuffixed-float-constants 167 | -Wunused-macros 168 | -Wunused-result 169 | -Wuseless-cast 170 | -Wvarargs 171 | -Wvariadic-macros 172 | -Wvector-operation-performance 173 | -Wvirtual-move-assign 174 | -Wvla 175 | -Wwrite-strings 176 | -Wzero-as-null-pointer-constant 177 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-5.txt: -------------------------------------------------------------------------------- 1 | -Wabi 2 | # -Wpsabi 3 | -Wabi-tag 4 | -Wabi= 5 | -Waggregate-return 6 | -Waggressive-loop-optimizations 7 | -Wall 8 | # -Waddress 9 | # -Warray-bounds 10 | # -Warray-bounds= 11 | # -Wbool-compare 12 | # -Wc++0x-compat 13 | # -Wnarrowing 14 | # -Wc++14-compat 15 | # -Wchar-subscripts 16 | # -Wchkp 17 | # -Wcomment 18 | # -Wdelete-non-virtual-dtor 19 | # -Wenum-compare 20 | # -Wformat= 21 | # -Wformat-contains-nul 22 | # -Wformat-extra-args 23 | # -Wformat-nonliteral 24 | # -Wformat-security 25 | # -Wformat-y2k 26 | # -Wformat-zero-length 27 | # -Wnonnull 28 | # -Wimplicit 29 | # -Wimplicit-function-declaration 30 | # -Wimplicit-int 31 | # -Winit-self 32 | # -Wlogical-not-parentheses 33 | # -Wmain 34 | # -Wmaybe-uninitialized 35 | # -Wmemset-transposed-args 36 | # -Wmissing-braces 37 | # -Wnarrowing 38 | # -Wnonnull 39 | # -Wopenmp-simd 40 | # -Wparentheses 41 | # -Wpointer-sign 42 | # -Wreorder 43 | # -Wreturn-type 44 | # -Wsequence-point 45 | # -Wsign-compare 46 | # -Wsizeof-pointer-memaccess 47 | # -Wstrict-aliasing= 48 | # -Wstrict-overflow= 49 | # -Wswitch 50 | # -Wtrigraphs 51 | # -Wuninitialized 52 | # -Wmaybe-uninitialized 53 | # -Wunknown-pragmas 54 | # -Wunused 55 | # -Wunused-but-set-variable 56 | # -Wunused-function 57 | # -Wunused-label 58 | # -Wunused-local-typedefs 59 | # -Wunused-value 60 | # -Wunused-variable 61 | # -Wvolatile-register-var 62 | -Wassign-intercept 63 | -Wattributes 64 | -Wbad-function-cast 65 | -Wbuiltin-macro-redefined 66 | -Wc++-compat 67 | # -Wenum-compare 68 | -Wc90-c99-compat 69 | # -Wlong-long 70 | -Wc99-c11-compat 71 | -Wcast-align 72 | -Wcast-qual 73 | -Wconditionally-supported 74 | -Wconversion 75 | # -Wfloat-conversion 76 | # -Wsign-conversion 77 | -Wconversion-null 78 | -Wcoverage-mismatch 79 | -Wcpp 80 | -Wctor-dtor-privacy 81 | -Wdate-time 82 | -Wdeclaration-after-statement 83 | -Wdelete-incomplete 84 | -Wdeprecated 85 | -Wdeprecated-declarations 86 | -Wdesignated-init 87 | -Wdisabled-optimization 88 | -Wdiscarded-array-qualifiers 89 | -Wdiscarded-qualifiers 90 | -Wdiv-by-zero 91 | -Wdouble-promotion 92 | -Weffc++ 93 | # -Wdelete-non-virtual-dtor 94 | # -Wnon-virtual-dtor 95 | -Wextra 96 | # -Wclobbered 97 | # -Wempty-body 98 | # -Wignored-qualifiers 99 | # -Wmissing-field-initializers 100 | # -Wmissing-parameter-type 101 | # -Wold-style-declaration 102 | # -Woverride-init 103 | # -Wsign-compare 104 | # -Wsized-deallocation 105 | # -Wtype-limits 106 | # -Wuninitialized 107 | # -Wmaybe-uninitialized 108 | # -Wunused-but-set-parameter 109 | # -Wunused-parameter 110 | -Wfloat-equal 111 | -Wformat-signedness 112 | -Wframe-larger-than= 113 | -Wfree-nonheap-object 114 | -Wimport # DUMMY switch 115 | -Wincompatible-pointer-types 116 | -Winherited-variadic-ctor 117 | -Winline 118 | -Wint-conversion 119 | -Wint-to-pointer-cast 120 | -Winvalid-memory-model 121 | -Winvalid-offsetof 122 | -Winvalid-pch 123 | -Wjump-misses-init 124 | -Wlarger-than= 125 | -Wliteral-suffix 126 | -Wlogical-op 127 | -Wmissing-declarations 128 | -Wmissing-include-dirs 129 | -Wmissing-prototypes 130 | -Wmudflap # DUMMY switch 131 | -Wmultichar 132 | -Wnested-externs 133 | -Wnoexcept 134 | -Wnon-template-friend 135 | -Wnormalized= 136 | -Wodr 137 | -Wold-style-cast 138 | -Wold-style-definition 139 | -Woverflow 140 | -Woverloaded-virtual 141 | -Wpacked 142 | -Wpacked-bitfield-compat 143 | -Wpadded 144 | -Wpedantic 145 | # -Wendif-labels 146 | # -Wmain 147 | # -Woverlength-strings 148 | # -Wpointer-arith 149 | # -Wpointer-sign 150 | # -Wvariadic-macros 151 | -Wpmf-conversions 152 | -Wpointer-to-int-cast 153 | -Wpragmas 154 | -Wproperty-assign-default 155 | -Wprotocol 156 | -Wredundant-decls 157 | -Wreturn-local-addr 158 | -Wselector 159 | -Wshadow 160 | # -Wshadow-ivar 161 | -Wshift-count-negative 162 | -Wshift-count-overflow 163 | -Wsign-promo 164 | -Wsizeof-array-argument 165 | -Wstack-protector 166 | -Wstack-usage= 167 | -Wstrict-aliasing 168 | -Wstrict-null-sentinel 169 | -Wstrict-overflow 170 | -Wstrict-prototypes 171 | -Wstrict-selector-match 172 | -Wsuggest-attribute=const 173 | -Wsuggest-attribute=format 174 | -Wsuggest-attribute=noreturn 175 | -Wsuggest-attribute=pure 176 | -Wsuggest-final-methods 177 | -Wsuggest-final-types 178 | -Wsuggest-override 179 | -Wswitch-bool 180 | -Wswitch-default 181 | -Wswitch-enum 182 | -Wsync-nand 183 | -Wsynth 184 | -Wsystem-headers 185 | -Wtraditional 186 | # -Wvariadic-macros 187 | -Wtraditional-conversion 188 | -Wtrampolines 189 | -Wundeclared-selector 190 | -Wundef 191 | -Wunreachable-code # DUMMY switch 192 | -Wunsafe-loop-optimizations 193 | -Wunsuffixed-float-constants 194 | -Wunused-macros 195 | -Wunused-result 196 | -Wuseless-cast 197 | -Wvarargs 198 | -Wvector-operation-performance 199 | -Wvirtual-move-assign 200 | -Wvla 201 | -Wwrite-strings 202 | -Wzero-as-null-pointer-constant 203 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-6.txt: -------------------------------------------------------------------------------- 1 | -Wabi 2 | # -Wpsabi 3 | -Wabi-tag 4 | -Wabi= 5 | -Waggregate-return 6 | -Waggressive-loop-optimizations 7 | -Wall 8 | # -Waddress 9 | # -Warray-bounds 10 | # -Warray-bounds= 11 | # -Wbool-compare 12 | # -Wc++11-compat 13 | # -Wnarrowing 14 | # -Wc++14-compat 15 | # -Wchar-subscripts 16 | # -Wchkp 17 | # -Wcomment 18 | # -Wdelete-non-virtual-dtor 19 | # -Wenum-compare 20 | # -Wformat= 21 | # -Wformat-contains-nul 22 | # -Wformat-extra-args 23 | # -Wformat-nonliteral 24 | # -Wformat-security 25 | # -Wformat-y2k 26 | # -Wformat-zero-length 27 | # -Wnonnull 28 | # -Wframe-address 29 | # -Wimplicit 30 | # -Wimplicit-function-declaration 31 | # -Wimplicit-int 32 | # -Winit-self 33 | # -Wlogical-not-parentheses 34 | # -Wmain 35 | # -Wmaybe-uninitialized 36 | # -Wmemset-transposed-args 37 | # -Wmisleading-indentation 38 | # -Wmissing-braces 39 | # -Wnarrowing 40 | # -Wnonnull 41 | # -Wnonnull-compare 42 | # -Wopenmp-simd 43 | # -Wparentheses 44 | # -Wpointer-sign 45 | # -Wreorder 46 | # -Wreturn-type 47 | # -Wsequence-point 48 | # -Wsign-compare 49 | # -Wsizeof-pointer-memaccess 50 | # -Wstrict-aliasing= 51 | # -Wstrict-overflow= 52 | # -Wswitch 53 | # -Wtautological-compare 54 | # -Wtrigraphs 55 | # -Wuninitialized 56 | # -Wmaybe-uninitialized 57 | # -Wunknown-pragmas 58 | # -Wunused 59 | # -Wunused-but-set-variable 60 | # -Wunused-function 61 | # -Wunused-label 62 | # -Wunused-local-typedefs 63 | # -Wunused-value 64 | # -Wunused-variable 65 | # -Wunused-const-variable= 66 | # -Wvolatile-register-var 67 | -Wassign-intercept 68 | -Wattributes 69 | -Wbad-function-cast 70 | -Wbuiltin-macro-redefined 71 | -Wc++-compat 72 | # -Wenum-compare 73 | -Wc90-c99-compat 74 | # -Wlong-long 75 | -Wc99-c11-compat 76 | -Wcast-align 77 | -Wcast-qual 78 | -Wconditionally-supported 79 | -Wconversion 80 | # -Wfloat-conversion 81 | # -Wsign-conversion 82 | -Wconversion-null 83 | -Wcoverage-mismatch 84 | -Wcpp 85 | -Wctor-dtor-privacy 86 | -Wdate-time 87 | -Wdeclaration-after-statement 88 | -Wdelete-incomplete 89 | -Wdeprecated 90 | -Wdeprecated-declarations 91 | -Wdesignated-init 92 | -Wdisabled-optimization 93 | -Wdiscarded-array-qualifiers 94 | -Wdiscarded-qualifiers 95 | -Wdiv-by-zero 96 | -Wdouble-promotion 97 | -Wduplicated-cond 98 | -Weffc++ 99 | # -Wdelete-non-virtual-dtor 100 | # -Wnon-virtual-dtor 101 | -Wextra 102 | # -Wclobbered 103 | # -Wempty-body 104 | # -Wignored-qualifiers 105 | # -Wmissing-field-initializers 106 | # -Wmissing-parameter-type 107 | # -Wold-style-declaration 108 | # -Woverride-init 109 | # -Wsign-compare 110 | # -Wsized-deallocation 111 | # -Wtype-limits 112 | # -Wuninitialized 113 | # -Wmaybe-uninitialized 114 | # -Wunused-but-set-parameter 115 | # -Wunused-parameter 116 | -Wfloat-equal 117 | -Wformat-signedness 118 | -Wframe-larger-than= 119 | -Wfree-nonheap-object 120 | -Whsa 121 | -Wignored-attributes 122 | -Wimport # DUMMY switch 123 | -Wincompatible-pointer-types 124 | -Winherited-variadic-ctor 125 | -Winline 126 | -Wint-conversion 127 | -Wint-to-pointer-cast 128 | -Winvalid-memory-model 129 | -Winvalid-offsetof 130 | -Winvalid-pch 131 | -Wjump-misses-init 132 | -Wlarger-than= 133 | -Wliteral-suffix 134 | -Wlogical-op 135 | -Wlto-type-mismatch 136 | -Wmissing-declarations 137 | -Wmissing-include-dirs 138 | -Wmissing-prototypes 139 | -Wmudflap # DUMMY switch 140 | -Wmultichar 141 | -Wmultiple-inheritance 142 | -Wnamespaces 143 | -Wnested-externs 144 | -Wnoexcept 145 | -Wnon-template-friend 146 | -Wnormalized= 147 | -Wnull-dereference 148 | -Wodr 149 | -Wold-style-cast 150 | -Wold-style-definition 151 | -Woverflow 152 | -Woverloaded-virtual 153 | -Woverride-init-side-effects 154 | -Wpacked 155 | -Wpacked-bitfield-compat 156 | -Wpadded 157 | -Wpedantic 158 | # -Wendif-labels 159 | # -Wmain 160 | # -Woverlength-strings 161 | # -Wpointer-arith 162 | # -Wpointer-sign 163 | # -Wvariadic-macros 164 | -Wplacement-new= 165 | -Wpmf-conversions 166 | -Wpointer-to-int-cast 167 | -Wpragmas 168 | -Wproperty-assign-default 169 | -Wprotocol 170 | -Wredundant-decls 171 | -Wreturn-local-addr 172 | -Wscalar-storage-order 173 | -Wselector 174 | -Wshadow 175 | # -Wshadow-ivar 176 | -Wshift-count-negative 177 | -Wshift-count-overflow 178 | -Wshift-negative-value 179 | -Wshift-overflow= 180 | -Wsign-promo 181 | -Wsizeof-array-argument 182 | -Wstack-protector 183 | -Wstack-usage= 184 | -Wstrict-aliasing 185 | -Wstrict-null-sentinel 186 | -Wstrict-overflow 187 | -Wstrict-prototypes 188 | -Wstrict-selector-match 189 | -Wsubobject-linkage 190 | -Wsuggest-attribute=const 191 | -Wsuggest-attribute=format 192 | -Wsuggest-attribute=noreturn 193 | -Wsuggest-attribute=pure 194 | -Wsuggest-final-methods 195 | -Wsuggest-final-types 196 | -Wsuggest-override 197 | -Wswitch-bool 198 | -Wswitch-default 199 | -Wswitch-enum 200 | -Wsync-nand 201 | -Wsynth 202 | -Wsystem-headers 203 | -Wtemplates 204 | -Wterminate 205 | -Wtraditional 206 | # -Wvariadic-macros 207 | -Wtraditional-conversion 208 | -Wtrampolines 209 | -Wundeclared-selector 210 | -Wundef 211 | -Wunreachable-code # DUMMY switch 212 | -Wunsafe-loop-optimizations 213 | -Wunsuffixed-float-constants 214 | -Wunused-macros 215 | -Wunused-result 216 | -Wuseless-cast 217 | -Wvarargs 218 | -Wvector-operation-performance 219 | -Wvirtual-inheritance 220 | -Wvirtual-move-assign 221 | -Wvla 222 | -Wwrite-strings 223 | -Wzero-as-null-pointer-constant 224 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-7.txt: -------------------------------------------------------------------------------- 1 | -Wabi 2 | # -Wnoexcept-type 3 | # -Wpsabi 4 | -Wabi-tag 5 | -Wabi= 6 | -Waggregate-return 7 | -Waggressive-loop-optimizations 8 | -Wall 9 | # -Waddress 10 | # -Waligned-new= 11 | # -Warray-bounds 12 | # -Warray-bounds= 13 | # -Wbool-compare 14 | # -Wbool-operation 15 | # -Wc++11-compat 16 | # -Wnarrowing 17 | # -Wc++14-compat 18 | # -Wc++1z-compat 19 | # -Wnoexcept-type 20 | # -Wchar-subscripts 21 | # -Wchkp 22 | # -Wcomment 23 | # -Wdelete-non-virtual-dtor 24 | # -Wduplicate-decl-specifier 25 | # -Wenum-compare 26 | # -Wformat= 27 | # -Wformat-contains-nul 28 | # -Wformat-extra-args 29 | # -Wformat-nonliteral 30 | # -Wformat-overflow= 31 | # -Wformat-security 32 | # -Wformat-truncation= 33 | # -Wformat-y2k 34 | # -Wformat-zero-length 35 | # -Wnonnull 36 | # -Wframe-address 37 | # -Wimplicit 38 | # -Wimplicit-function-declaration 39 | # -Wimplicit-int 40 | # -Winit-self 41 | # -Wint-in-bool-context 42 | # -Wlogical-not-parentheses 43 | # -Wmain 44 | # -Wmaybe-uninitialized 45 | # -Wmemset-elt-size 46 | # -Wmemset-transposed-args 47 | # -Wmisleading-indentation 48 | # -Wmissing-braces 49 | # -Wnarrowing 50 | # -Wnonnull 51 | # -Wnonnull-compare 52 | # -Wopenmp-simd 53 | # -Wparentheses 54 | # -Wdangling-else 55 | # -Wpointer-sign 56 | # -Wreorder 57 | # -Wreturn-type 58 | # -Wsequence-point 59 | # -Wsign-compare 60 | # -Wsizeof-pointer-memaccess 61 | # -Wstrict-aliasing= 62 | # -Wstrict-overflow= 63 | # -Wswitch 64 | # -Wtautological-compare 65 | # -Wtrigraphs 66 | # -Wuninitialized 67 | # -Wmaybe-uninitialized 68 | # -Wunknown-pragmas 69 | # -Wunused 70 | # -Wunused-but-set-variable 71 | # -Wunused-function 72 | # -Wunused-label 73 | # -Wunused-local-typedefs 74 | # -Wunused-value 75 | # -Wunused-variable 76 | # -Wunused-const-variable= 77 | # -Wvolatile-register-var 78 | -Walloc-size-larger-than= 79 | -Walloc-zero 80 | -Walloca 81 | -Walloca-larger-than= 82 | -Wassign-intercept 83 | -Wattributes 84 | -Wbad-function-cast 85 | -Wbuiltin-declaration-mismatch 86 | -Wbuiltin-macro-redefined 87 | -Wc++-compat 88 | # -Wenum-compare 89 | -Wc90-c99-compat 90 | # -Wlong-long 91 | -Wc99-c11-compat 92 | -Wcast-align 93 | -Wcast-qual 94 | -Wconditionally-supported 95 | -Wconversion 96 | # -Wfloat-conversion 97 | # -Wsign-conversion 98 | -Wconversion-null 99 | -Wcoverage-mismatch 100 | -Wcpp 101 | -Wctor-dtor-privacy 102 | -Wdate-time 103 | -Wdeclaration-after-statement 104 | -Wdelete-incomplete 105 | -Wdeprecated 106 | -Wdeprecated-declarations 107 | -Wdesignated-init 108 | -Wdisabled-optimization 109 | -Wdiscarded-array-qualifiers 110 | -Wdiscarded-qualifiers 111 | -Wdiv-by-zero 112 | -Wdouble-promotion 113 | -Wduplicated-branches 114 | -Wduplicated-cond 115 | -Weffc++ 116 | # -Wdelete-non-virtual-dtor 117 | # -Wnon-virtual-dtor 118 | -Wextra 119 | # -Wclobbered 120 | # -Wempty-body 121 | # -Wignored-qualifiers 122 | # -Wimplicit-fallthrough= 123 | # -Wmissing-field-initializers 124 | # -Wmissing-parameter-type 125 | # -Wold-style-declaration 126 | # -Woverride-init 127 | # -Wsign-compare 128 | # -Wsized-deallocation 129 | # -Wtype-limits 130 | # -Wuninitialized 131 | # -Wmaybe-uninitialized 132 | # -Wunused-but-set-parameter 133 | # -Wunused-parameter 134 | -Wfloat-equal 135 | -Wformat-signedness 136 | -Wframe-larger-than= 137 | -Wfree-nonheap-object 138 | -Whsa 139 | -Wignored-attributes 140 | -Wimport # DUMMY switch 141 | -Wincompatible-pointer-types 142 | -Winherited-variadic-ctor 143 | -Winline 144 | -Wint-conversion 145 | -Wint-to-pointer-cast 146 | -Winvalid-memory-model 147 | -Winvalid-offsetof 148 | -Winvalid-pch 149 | -Wjump-misses-init 150 | -Wlarger-than= 151 | -Wliteral-suffix 152 | -Wlogical-op 153 | -Wlto-type-mismatch 154 | -Wmissing-declarations 155 | -Wmissing-include-dirs 156 | -Wmissing-prototypes 157 | -Wmudflap # DUMMY switch 158 | -Wmultichar 159 | -Wmultiple-inheritance 160 | -Wnamespaces 161 | -Wnested-externs 162 | -Wnoexcept 163 | -Wnon-template-friend 164 | -Wnormalized= 165 | -Wnull-dereference 166 | -Wodr 167 | -Wold-style-cast 168 | -Wold-style-definition 169 | -Woverflow 170 | -Woverloaded-virtual 171 | -Woverride-init-side-effects 172 | -Wpacked 173 | -Wpacked-bitfield-compat 174 | -Wpadded 175 | -Wpedantic 176 | # -Wendif-labels 177 | # -Wexpansion-to-defined 178 | # -Wmain 179 | # -Woverlength-strings 180 | # -Wpointer-arith 181 | # -Wpointer-sign 182 | # -Wvariadic-macros 183 | -Wplacement-new= 184 | -Wpmf-conversions 185 | -Wpointer-compare 186 | -Wpointer-to-int-cast 187 | -Wpragmas 188 | -Wproperty-assign-default 189 | -Wprotocol 190 | -Wredundant-decls 191 | -Wregister 192 | -Wrestrict 193 | -Wreturn-local-addr 194 | -Wscalar-storage-order 195 | -Wselector 196 | -Wshadow 197 | # -Wshadow-ivar 198 | # -Wshadow=local 199 | # -Wshadow=compatible-local 200 | -Wshift-count-negative 201 | -Wshift-count-overflow 202 | -Wshift-negative-value 203 | -Wshift-overflow= 204 | -Wsign-promo 205 | -Wsizeof-array-argument 206 | -Wstack-protector 207 | -Wstack-usage= 208 | -Wstrict-aliasing 209 | -Wstrict-null-sentinel 210 | -Wstrict-overflow 211 | -Wstrict-prototypes 212 | -Wstrict-selector-match 213 | -Wstringop-overflow= 214 | -Wsubobject-linkage 215 | -Wsuggest-attribute=const 216 | -Wsuggest-attribute=format 217 | -Wsuggest-attribute=noreturn 218 | -Wsuggest-attribute=pure 219 | -Wsuggest-final-methods 220 | -Wsuggest-final-types 221 | -Wsuggest-override 222 | -Wswitch-bool 223 | -Wswitch-default 224 | -Wswitch-enum 225 | -Wswitch-unreachable 226 | -Wsync-nand 227 | -Wsynth 228 | -Wsystem-headers 229 | -Wtemplates 230 | -Wterminate 231 | -Wtraditional 232 | # -Wvariadic-macros 233 | -Wtraditional-conversion 234 | -Wtrampolines 235 | -Wundeclared-selector 236 | -Wundef 237 | -Wunreachable-code # DUMMY switch 238 | -Wunsafe-loop-optimizations 239 | -Wunsuffixed-float-constants 240 | -Wunused-macros 241 | -Wunused-result 242 | -Wuseless-cast 243 | -Wvarargs 244 | -Wvector-operation-performance 245 | -Wvirtual-inheritance 246 | -Wvirtual-move-assign 247 | -Wvla 248 | -Wvla-larger-than= 249 | -Wwrite-strings 250 | -Wzero-as-null-pointer-constant 251 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-top-level-8.txt: -------------------------------------------------------------------------------- 1 | -Wabi 2 | # -Wnoexcept-type 3 | # -Wpsabi 4 | -Wabi-tag 5 | -Wabi= 6 | -Waggregate-return 7 | -Waggressive-loop-optimizations 8 | -Wall 9 | # -Waddress 10 | # -Waligned-new= 11 | # -Walloc-size-larger-than= 12 | # -Warray-bounds 13 | # -Warray-bounds= 14 | # -Wbool-compare 15 | # -Wbool-operation 16 | # -Wc++11-compat 17 | # -Wnarrowing 18 | # -Wc++14-compat 19 | # -Wc++17-compat 20 | # -Wnoexcept-type 21 | # -Wcatch-value= 22 | # -Wchar-subscripts 23 | # -Wchkp 24 | # -Wclass-memaccess 25 | # -Wcomment 26 | # -Wdelete-non-virtual-dtor 27 | # -Wduplicate-decl-specifier 28 | # -Wenum-compare 29 | # -Wformat= 30 | # -Wformat-contains-nul 31 | # -Wformat-extra-args 32 | # -Wformat-nonliteral 33 | # -Wformat-overflow= 34 | # -Wformat-security 35 | # -Wformat-truncation= 36 | # -Wformat-y2k 37 | # -Wformat-zero-length 38 | # -Wnonnull 39 | # -Wframe-address 40 | # -Wimplicit 41 | # -Wimplicit-function-declaration 42 | # -Wimplicit-int 43 | # -Winit-self 44 | # -Wint-in-bool-context 45 | # -Wlogical-not-parentheses 46 | # -Wmain 47 | # -Wmaybe-uninitialized 48 | # -Wmemset-elt-size 49 | # -Wmemset-transposed-args 50 | # -Wmisleading-indentation 51 | # -Wmissing-attributes 52 | # -Wmissing-braces 53 | # -Wmultistatement-macros 54 | # -Wnarrowing 55 | # -Wnonnull 56 | # -Wnonnull-compare 57 | # -Wopenmp-simd 58 | # -Wpacked-not-aligned 59 | # -Wparentheses 60 | # -Wdangling-else 61 | # -Wpointer-sign 62 | # -Wreorder 63 | # -Wrestrict 64 | # -Wreturn-type 65 | # -Wsequence-point 66 | # -Wsign-compare 67 | # -Wsizeof-pointer-div 68 | # -Wsizeof-pointer-memaccess 69 | # -Wstrict-aliasing= 70 | # -Wstrict-overflow= 71 | # -Wstringop-overflow= 72 | # -Wstringop-truncation 73 | # -Wswitch 74 | # -Wtautological-compare 75 | # -Wtrigraphs 76 | # -Wuninitialized 77 | # -Wmaybe-uninitialized 78 | # -Wunknown-pragmas 79 | # -Wunused 80 | # -Wunused-but-set-variable 81 | # -Wunused-function 82 | # -Wunused-label 83 | # -Wunused-local-typedefs 84 | # -Wunused-value 85 | # -Wunused-variable 86 | # -Wunused-const-variable= 87 | # -Wvolatile-register-var 88 | -Walloc-zero 89 | -Walloca 90 | -Walloca-larger-than= 91 | -Wassign-intercept 92 | -Wattribute-alias 93 | -Wattributes 94 | -Wbad-function-cast 95 | -Wbuiltin-declaration-mismatch 96 | -Wbuiltin-macro-redefined 97 | -Wc++-compat 98 | # -Wenum-compare 99 | -Wc90-c99-compat 100 | # -Wlong-long 101 | -Wc99-c11-compat 102 | -Wcast-align 103 | -Wcast-align=strict 104 | -Wcast-qual 105 | -Wconditionally-supported 106 | -Wconversion 107 | # -Wfloat-conversion 108 | # -Wsign-conversion 109 | -Wconversion-null 110 | -Wcoverage-mismatch 111 | -Wcpp 112 | -Wctor-dtor-privacy 113 | -Wdate-time 114 | -Wdeclaration-after-statement 115 | -Wdelete-incomplete 116 | -Wdeprecated 117 | -Wdeprecated-declarations 118 | -Wdesignated-init 119 | -Wdisabled-optimization 120 | -Wdiscarded-array-qualifiers 121 | -Wdiscarded-qualifiers 122 | -Wdiv-by-zero 123 | -Wdouble-promotion 124 | -Wduplicated-branches 125 | -Wduplicated-cond 126 | -Weffc++ 127 | # -Wdelete-non-virtual-dtor 128 | # -Wnon-virtual-dtor 129 | -Wextra 130 | # -Wcast-function-type 131 | # -Wclobbered 132 | # -Wempty-body 133 | # -Wignored-qualifiers 134 | # -Wimplicit-fallthrough= 135 | # -Wmissing-field-initializers 136 | # -Wmissing-parameter-type 137 | # -Wold-style-declaration 138 | # -Woverride-init 139 | # -Wsign-compare 140 | # -Wsized-deallocation 141 | # -Wtype-limits 142 | # -Wuninitialized 143 | # -Wmaybe-uninitialized 144 | # -Wunused-but-set-parameter 145 | # -Wunused-parameter 146 | -Wextra-semi 147 | -Wfloat-equal 148 | -Wformat-signedness 149 | -Wframe-larger-than= 150 | -Wfree-nonheap-object 151 | -Whsa 152 | -Wif-not-aligned 153 | -Wignored-attributes 154 | -Wimport # DUMMY switch 155 | -Wincompatible-pointer-types 156 | -Winherited-variadic-ctor 157 | -Winline 158 | -Wint-conversion 159 | -Wint-to-pointer-cast 160 | -Winvalid-memory-model 161 | -Winvalid-offsetof 162 | -Winvalid-pch 163 | -Wjump-misses-init 164 | -Wlarger-than= 165 | -Wliteral-suffix 166 | -Wlogical-op 167 | -Wlto-type-mismatch 168 | -Wmissing-declarations 169 | -Wmissing-include-dirs 170 | -Wmissing-prototypes 171 | -Wmudflap # DUMMY switch 172 | -Wmultichar 173 | -Wmultiple-inheritance 174 | -Wnamespaces 175 | -Wnested-externs 176 | -Wnoexcept 177 | -Wnon-template-friend 178 | -Wnormalized= 179 | -Wnull-dereference 180 | -Wodr 181 | -Wold-style-cast 182 | -Wold-style-definition 183 | -Woverflow 184 | -Woverloaded-virtual 185 | -Woverride-init-side-effects 186 | -Wpacked 187 | -Wpacked-bitfield-compat 188 | -Wpadded 189 | -Wpedantic 190 | # -Wendif-labels 191 | # -Wexpansion-to-defined 192 | # -Wmain 193 | # -Woverlength-strings 194 | # -Wpointer-arith 195 | # -Wpointer-sign 196 | # -Wvariadic-macros 197 | -Wplacement-new= 198 | -Wpmf-conversions 199 | -Wpointer-compare 200 | -Wpointer-to-int-cast 201 | -Wpragmas 202 | -Wproperty-assign-default 203 | -Wprotocol 204 | -Wredundant-decls 205 | -Wregister 206 | -Wreturn-local-addr 207 | -Wscalar-storage-order 208 | -Wselector 209 | -Wshadow 210 | # -Wshadow-ivar 211 | # -Wshadow=local 212 | # -Wshadow=compatible-local 213 | -Wshift-count-negative 214 | -Wshift-count-overflow 215 | -Wshift-negative-value 216 | -Wshift-overflow= 217 | -Wsign-promo 218 | -Wsizeof-array-argument 219 | -Wstack-protector 220 | -Wstack-usage= 221 | -Wstrict-aliasing 222 | -Wstrict-null-sentinel 223 | -Wstrict-overflow 224 | -Wstrict-prototypes 225 | -Wstrict-selector-match 226 | -Wsubobject-linkage 227 | -Wsuggest-attribute=cold 228 | -Wsuggest-attribute=const 229 | -Wsuggest-attribute=format 230 | -Wsuggest-attribute=malloc 231 | -Wsuggest-attribute=noreturn 232 | -Wsuggest-attribute=pure 233 | -Wsuggest-final-methods 234 | -Wsuggest-final-types 235 | -Wsuggest-override 236 | -Wswitch-bool 237 | -Wswitch-default 238 | -Wswitch-enum 239 | -Wswitch-unreachable 240 | -Wsync-nand 241 | -Wsynth 242 | -Wsystem-headers 243 | -Wtemplates 244 | -Wterminate 245 | -Wtraditional 246 | # -Wvariadic-macros 247 | -Wtraditional-conversion 248 | -Wtrampolines 249 | -Wundeclared-selector 250 | -Wundef 251 | -Wunreachable-code # DUMMY switch 252 | -Wunsafe-loop-optimizations # DUMMY switch 253 | -Wunsuffixed-float-constants 254 | -Wunused-macros 255 | -Wunused-result 256 | -Wuseless-cast 257 | -Wvarargs 258 | -Wvector-operation-performance 259 | -Wvirtual-inheritance 260 | -Wvirtual-move-assign 261 | -Wvla 262 | -Wvla-larger-than= 263 | -Wwrite-strings 264 | -Wzero-as-null-pointer-constant 265 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-3.4.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Waggregate-return 8 | -Wall 9 | -Wbad-function-cast 10 | -Wcast-align 11 | -Wcast-qual 12 | -Wchar-subscripts 13 | -Wcomment 14 | -Wcomments 15 | -Wconversion 16 | -Wctor-dtor-privacy 17 | -Wdeclaration-after-statement 18 | -Wdeprecated 19 | -Wdeprecated-declarations 20 | -Wdisabled-optimization 21 | -Wdiv-by-zero 22 | -Weffc++ 23 | -Wendif-labels 24 | -Werror-implicit-function-declaration 25 | -Wextra 26 | -Wfloat-equal 27 | -Wformat 28 | -Wformat-extra-args 29 | -Wformat-nonliteral 30 | -Wformat-security 31 | -Wformat-y2k 32 | -Wformat-zero-length 33 | -Wformat= 34 | -Wimplicit 35 | -Wimplicit-function-declaration 36 | -Wimplicit-int 37 | -Wimport 38 | -Winit-self 39 | -Winline 40 | -Winvalid-offsetof 41 | -Winvalid-pch 42 | -Wlarger-than- 43 | -Wlong-long 44 | -Wmain 45 | -Wmissing-braces 46 | -Wmissing-declarations 47 | -Wmissing-format-attribute 48 | -Wmissing-noreturn 49 | -Wmissing-prototypes 50 | -Wmultichar 51 | -Wnested-externs 52 | -Wnon-template-friend 53 | -Wnon-virtual-dtor 54 | -Wnonnull 55 | -Wold-style-cast 56 | -Wold-style-definition 57 | -Woverloaded-virtual 58 | -Wpacked 59 | -Wpadded 60 | -Wparentheses 61 | -Wpmf-conversions 62 | -Wpointer-arith 63 | -Wprotocol 64 | -Wredundant-decls 65 | -Wreorder 66 | -Wreturn-type 67 | -Wselector 68 | -Wsequence-point 69 | -Wshadow 70 | -Wsign-compare 71 | -Wsign-promo 72 | -Wstrict-aliasing 73 | -Wstrict-prototypes 74 | -Wswitch 75 | -Wswitch-default 76 | -Wswitch-enum 77 | -Wsynth 78 | -Wsystem-headers 79 | -Wtraditional 80 | -Wtrigraphs 81 | -Wundeclared-selector 82 | -Wundef 83 | -Wuninitialized 84 | -Wunknown-pragmas 85 | -Wunreachable-code 86 | -Wunused 87 | -Wunused-function 88 | -Wunused-label 89 | -Wunused-macros 90 | -Wunused-parameter 91 | -Wunused-value 92 | -Wunused-variable 93 | -Wwrite-strings 94 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-4.0.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Waggregate-return 8 | -Wall 9 | -Wbad-function-cast 10 | -Wcast-align 11 | -Wcast-qual 12 | -Wchar-subscripts 13 | -Wcomment 14 | -Wcomments 15 | -Wconversion 16 | -Wctor-dtor-privacy 17 | -Wdeclaration-after-statement 18 | -Wdeprecated 19 | -Wdeprecated-declarations 20 | -Wdisabled-optimization 21 | -Wdiv-by-zero 22 | -Weffc++ 23 | -Wendif-labels 24 | -Werror-implicit-function-declaration 25 | -Wextra 26 | -Wfloat-equal 27 | -Wformat 28 | -Wformat-extra-args 29 | -Wformat-nonliteral 30 | -Wformat-security 31 | -Wformat-y2k 32 | -Wformat-zero-length 33 | -Wformat= 34 | -Wimplicit 35 | -Wimplicit-function-declaration 36 | -Wimplicit-int 37 | -Wimport 38 | -Winit-self 39 | -Winline 40 | -Winvalid-offsetof 41 | -Winvalid-pch 42 | -Wlarger-than- 43 | -Wlong-long 44 | -Wmain 45 | -Wmissing-braces 46 | -Wmissing-declarations 47 | -Wmissing-field-initializers 48 | -Wmissing-format-attribute 49 | -Wmissing-include-dirs 50 | -Wmissing-noreturn 51 | -Wmissing-prototypes 52 | -Wmultichar 53 | -Wnested-externs 54 | -Wnon-template-friend 55 | -Wnon-virtual-dtor 56 | -Wnonnull 57 | -Wold-style-cast 58 | -Wold-style-definition 59 | -Woverloaded-virtual 60 | -Wpacked 61 | -Wpadded 62 | -Wparentheses 63 | -Wpmf-conversions 64 | -Wpointer-arith 65 | -Wpointer-sign 66 | -Wprotocol 67 | -Wredundant-decls 68 | -Wreorder 69 | -Wreturn-type 70 | -Wselector 71 | -Wsequence-point 72 | -Wshadow 73 | -Wsign-compare 74 | -Wsign-promo 75 | -Wstrict-aliasing 76 | -Wstrict-aliasing= 77 | -Wstrict-null-sentinel 78 | -Wstrict-prototypes 79 | -Wswitch 80 | -Wswitch-default 81 | -Wswitch-enum 82 | -Wsynth 83 | -Wsystem-headers 84 | -Wtraditional 85 | -Wtrigraphs 86 | -Wundeclared-selector 87 | -Wundef 88 | -Wuninitialized 89 | -Wunknown-pragmas 90 | -Wunreachable-code 91 | -Wunused 92 | -Wunused-function 93 | -Wunused-label 94 | -Wunused-macros 95 | -Wunused-parameter 96 | -Wunused-value 97 | -Wunused-variable 98 | -Wvariadic-macros 99 | -Wwrite-strings 100 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-4.1.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Waggregate-return 8 | -Wall 9 | -Wassign-intercept 10 | -Wattributes 11 | -Wbad-function-cast 12 | -Wc++-compat 13 | -Wcast-align 14 | -Wcast-qual 15 | -Wchar-subscripts 16 | -Wcomment 17 | -Wcomments 18 | -Wconversion 19 | -Wctor-dtor-privacy 20 | -Wdeclaration-after-statement 21 | -Wdeprecated 22 | -Wdeprecated-declarations 23 | -Wdisabled-optimization 24 | -Wdiv-by-zero 25 | -Weffc++ 26 | -Wendif-labels 27 | -Werror-implicit-function-declaration 28 | -Wextra 29 | -Wfloat-equal 30 | -Wformat 31 | -Wformat-extra-args 32 | -Wformat-nonliteral 33 | -Wformat-security 34 | -Wformat-y2k 35 | -Wformat-zero-length 36 | -Wformat= 37 | -Wimplicit 38 | -Wimplicit-function-declaration 39 | -Wimplicit-int 40 | -Wimport 41 | -Winit-self 42 | -Winline 43 | -Wint-to-pointer-cast 44 | -Winvalid-offsetof 45 | -Winvalid-pch 46 | -Wlarger-than- 47 | -Wlong-long 48 | -Wmain 49 | -Wmissing-braces 50 | -Wmissing-declarations 51 | -Wmissing-field-initializers 52 | -Wmissing-format-attribute 53 | -Wmissing-include-dirs 54 | -Wmissing-noreturn 55 | -Wmissing-prototypes 56 | -Wmultichar 57 | -Wnested-externs 58 | -Wnon-template-friend 59 | -Wnon-virtual-dtor 60 | -Wnonnull 61 | -Wnormalized= 62 | -Wold-style-cast 63 | -Wold-style-definition 64 | -Woverloaded-virtual 65 | -Wpacked 66 | -Wpadded 67 | -Wparentheses 68 | -Wpmf-conversions 69 | -Wpointer-arith 70 | -Wpointer-sign 71 | -Wpointer-to-int-cast 72 | -Wpragmas 73 | -Wprotocol 74 | -Wredundant-decls 75 | -Wreorder 76 | -Wreturn-type 77 | -Wselector 78 | -Wsequence-point 79 | -Wshadow 80 | -Wsign-compare 81 | -Wsign-promo 82 | -Wstack-protector 83 | -Wstrict-aliasing 84 | -Wstrict-aliasing= 85 | -Wstrict-null-sentinel 86 | -Wstrict-prototypes 87 | -Wstrict-selector-match 88 | -Wswitch 89 | -Wswitch-default 90 | -Wswitch-enum 91 | -Wsynth 92 | -Wsystem-headers 93 | -Wtraditional 94 | -Wtrigraphs 95 | -Wundeclared-selector 96 | -Wundef 97 | -Wuninitialized 98 | -Wunknown-pragmas 99 | -Wunreachable-code 100 | -Wunsafe-loop-optimizations 101 | -Wunused 102 | -Wunused-function 103 | -Wunused-label 104 | -Wunused-macros 105 | -Wunused-parameter 106 | -Wunused-value 107 | -Wunused-variable 108 | -Wvariadic-macros 109 | -Wvolatile-register-var 110 | -Wwrite-strings 111 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-4.2.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Waddress 8 | -Waggregate-return 9 | -Wall 10 | -Wassign-intercept 11 | -Wattributes 12 | -Wbad-function-cast 13 | -Wc++-compat 14 | -Wcast-align 15 | -Wcast-qual 16 | -Wchar-subscripts 17 | -Wcomment 18 | -Wcomments 19 | -Wconversion 20 | -Wctor-dtor-privacy 21 | -Wdeclaration-after-statement 22 | -Wdeprecated 23 | -Wdeprecated-declarations 24 | -Wdisabled-optimization 25 | -Wdiv-by-zero 26 | -Weffc++ 27 | -Wendif-labels 28 | -Werror-implicit-function-declaration 29 | -Wextra 30 | -Wfloat-equal 31 | -Wformat 32 | -Wformat-extra-args 33 | -Wformat-nonliteral 34 | -Wformat-security 35 | -Wformat-y2k 36 | -Wformat-zero-length 37 | -Wformat= 38 | -Wimplicit 39 | -Wimplicit-function-declaration 40 | -Wimplicit-int 41 | -Wimport 42 | -Winit-self 43 | -Winline 44 | -Wint-to-pointer-cast 45 | -Winvalid-offsetof 46 | -Winvalid-pch 47 | -Wlarger-than- 48 | -Wlong-long 49 | -Wmain 50 | -Wmissing-braces 51 | -Wmissing-declarations 52 | -Wmissing-field-initializers 53 | -Wmissing-format-attribute 54 | -Wmissing-include-dirs 55 | -Wmissing-noreturn 56 | -Wmissing-prototypes 57 | -Wmultichar 58 | -Wnested-externs 59 | -Wnon-template-friend 60 | -Wnon-virtual-dtor 61 | -Wnonnull 62 | -Wnormalized= 63 | -Wold-style-cast 64 | -Wold-style-definition 65 | -Woverflow 66 | -Woverlength-strings 67 | -Woverloaded-virtual 68 | -Woverride-init 69 | -Wpacked 70 | -Wpadded 71 | -Wparentheses 72 | -Wpmf-conversions 73 | -Wpointer-arith 74 | -Wpointer-sign 75 | -Wpointer-to-int-cast 76 | -Wpragmas 77 | -Wprotocol 78 | -Wredundant-decls 79 | -Wreorder 80 | -Wreturn-type 81 | -Wselector 82 | -Wsequence-point 83 | -Wshadow 84 | -Wsign-compare 85 | -Wsign-promo 86 | -Wstack-protector 87 | -Wstrict-aliasing 88 | -Wstrict-aliasing= 89 | -Wstrict-null-sentinel 90 | -Wstrict-overflow 91 | -Wstrict-overflow= 92 | -Wstrict-prototypes 93 | -Wstrict-selector-match 94 | -Wswitch 95 | -Wswitch-default 96 | -Wswitch-enum 97 | -Wsynth 98 | -Wsystem-headers 99 | -Wtraditional 100 | -Wtrigraphs 101 | -Wundeclared-selector 102 | -Wundef 103 | -Wuninitialized 104 | -Wunknown-pragmas 105 | -Wunreachable-code 106 | -Wunsafe-loop-optimizations 107 | -Wunused 108 | -Wunused-function 109 | -Wunused-label 110 | -Wunused-macros 111 | -Wunused-parameter 112 | -Wunused-value 113 | -Wunused-variable 114 | -Wvariadic-macros 115 | -Wvolatile-register-var 116 | -Wwrite-strings 117 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-4.3.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Waddress 8 | -Waggregate-return 9 | -Wall 10 | -Warray-bounds 11 | -Wassign-intercept 12 | -Wattributes 13 | -Wbad-function-cast 14 | -Wc++-compat 15 | -Wc++0x-compat 16 | -Wcast-align 17 | -Wcast-qual 18 | -Wchar-subscripts 19 | -Wclobbered 20 | -Wcomment 21 | -Wcomments 22 | -Wconversion 23 | -Wcoverage-mismatch 24 | -Wctor-dtor-privacy 25 | -Wdeclaration-after-statement 26 | -Wdeprecated 27 | -Wdeprecated-declarations 28 | -Wdisabled-optimization 29 | -Wdiv-by-zero 30 | -Weffc++ 31 | -Wempty-body 32 | -Wendif-labels 33 | -Werror-implicit-function-declaration 34 | -Wextra 35 | -Wfloat-equal 36 | -Wformat 37 | -Wformat-contains-nul 38 | -Wformat-extra-args 39 | -Wformat-nonliteral 40 | -Wformat-security 41 | -Wformat-y2k 42 | -Wformat-zero-length 43 | -Wformat= 44 | -Wignored-qualifiers 45 | -Wimplicit 46 | -Wimplicit-function-declaration 47 | -Wimplicit-int 48 | -Wimport 49 | -Winit-self 50 | -Winline 51 | -Wint-to-pointer-cast 52 | -Winvalid-offsetof 53 | -Winvalid-pch 54 | -Wlarger-than- 55 | -Wlogical-op 56 | -Wlong-long 57 | -Wmain 58 | -Wmissing-braces 59 | -Wmissing-declarations 60 | -Wmissing-field-initializers 61 | -Wmissing-format-attribute 62 | -Wmissing-include-dirs 63 | -Wmissing-noreturn 64 | -Wmissing-parameter-type 65 | -Wmissing-prototypes 66 | -Wmultichar 67 | -Wnested-externs 68 | -Wnon-template-friend 69 | -Wnon-virtual-dtor 70 | -Wnonnull 71 | -Wnormalized= 72 | -Wold-style-cast 73 | -Wold-style-declaration 74 | -Wold-style-definition 75 | -Woverflow 76 | -Woverlength-strings 77 | -Woverloaded-virtual 78 | -Woverride-init 79 | -Wpacked 80 | -Wpadded 81 | -Wparentheses 82 | -Wpmf-conversions 83 | -Wpointer-arith 84 | -Wpointer-sign 85 | -Wpointer-to-int-cast 86 | -Wpragmas 87 | -Wprotocol 88 | -Wredundant-decls 89 | -Wreorder 90 | -Wreturn-type 91 | -Wselector 92 | -Wsequence-point 93 | -Wshadow 94 | -Wsign-compare 95 | -Wsign-conversion 96 | -Wsign-promo 97 | -Wstack-protector 98 | -Wstrict-aliasing 99 | -Wstrict-aliasing= 100 | -Wstrict-null-sentinel 101 | -Wstrict-overflow 102 | -Wstrict-overflow= 103 | -Wstrict-prototypes 104 | -Wstrict-selector-match 105 | -Wswitch 106 | -Wswitch-default 107 | -Wswitch-enum 108 | -Wsynth 109 | -Wsystem-headers 110 | -Wtraditional 111 | -Wtraditional-conversion 112 | -Wtrigraphs 113 | -Wtype-limits 114 | -Wundeclared-selector 115 | -Wundef 116 | -Wuninitialized 117 | -Wunknown-pragmas 118 | -Wunreachable-code 119 | -Wunsafe-loop-optimizations 120 | -Wunused 121 | -Wunused-function 122 | -Wunused-label 123 | -Wunused-macros 124 | -Wunused-parameter 125 | -Wunused-value 126 | -Wunused-variable 127 | -Wvariadic-macros 128 | -Wvla 129 | -Wvolatile-register-var 130 | -Wwrite-strings 131 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-4.4.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Waddress 8 | -Waggregate-return 9 | -Wall 10 | -Warray-bounds 11 | -Wassign-intercept 12 | -Wattributes 13 | -Wbad-function-cast 14 | -Wbuiltin-macro-redefined 15 | -Wc++-compat 16 | -Wc++0x-compat 17 | -Wcast-align 18 | -Wcast-qual 19 | -Wchar-subscripts 20 | -Wclobbered 21 | -Wcomment 22 | -Wcomments 23 | -Wconversion 24 | -Wcoverage-mismatch 25 | -Wctor-dtor-privacy 26 | -Wdeclaration-after-statement 27 | -Wdeprecated 28 | -Wdeprecated-declarations 29 | -Wdisabled-optimization 30 | -Wdiv-by-zero 31 | -Weffc++ 32 | -Wempty-body 33 | -Wendif-labels 34 | -Wenum-compare 35 | -Werror-implicit-function-declaration 36 | -Wextra 37 | -Wfloat-equal 38 | -Wformat 39 | -Wformat-contains-nul 40 | -Wformat-extra-args 41 | -Wformat-nonliteral 42 | -Wformat-security 43 | -Wformat-y2k 44 | -Wformat-zero-length 45 | -Wformat= 46 | -Wframe-larger-than= 47 | -Wignored-qualifiers 48 | -Wimplicit 49 | -Wimplicit-function-declaration 50 | -Wimplicit-int 51 | -Wimport 52 | -Winit-self 53 | -Winline 54 | -Wint-to-pointer-cast 55 | -Winvalid-offsetof 56 | -Winvalid-pch 57 | -Wlarger-than- 58 | -Wlarger-than= 59 | -Wlogical-op 60 | -Wlong-long 61 | -Wmain 62 | -Wmissing-braces 63 | -Wmissing-declarations 64 | -Wmissing-field-initializers 65 | -Wmissing-format-attribute 66 | -Wmissing-include-dirs 67 | -Wmissing-noreturn 68 | -Wmissing-parameter-type 69 | -Wmissing-prototypes 70 | -Wmudflap 71 | -Wmultichar 72 | -Wnested-externs 73 | -Wnon-template-friend 74 | -Wnon-virtual-dtor 75 | -Wnonnull 76 | -Wnormalized= 77 | -Wold-style-cast 78 | -Wold-style-declaration 79 | -Wold-style-definition 80 | -Woverflow 81 | -Woverlength-strings 82 | -Woverloaded-virtual 83 | -Woverride-init 84 | -Wpacked 85 | -Wpacked-bitfield-compat 86 | -Wpadded 87 | -Wparentheses 88 | -Wpmf-conversions 89 | -Wpointer-arith 90 | -Wpointer-sign 91 | -Wpointer-to-int-cast 92 | -Wpragmas 93 | -Wprotocol 94 | -Wpsabi 95 | -Wredundant-decls 96 | -Wreorder 97 | -Wreturn-type 98 | -Wselector 99 | -Wsequence-point 100 | -Wshadow 101 | -Wsign-compare 102 | -Wsign-conversion 103 | -Wsign-promo 104 | -Wstack-protector 105 | -Wstrict-aliasing 106 | -Wstrict-aliasing= 107 | -Wstrict-null-sentinel 108 | -Wstrict-overflow 109 | -Wstrict-overflow= 110 | -Wstrict-prototypes 111 | -Wstrict-selector-match 112 | -Wswitch 113 | -Wswitch-default 114 | -Wswitch-enum 115 | -Wsync-nand 116 | -Wsynth 117 | -Wsystem-headers 118 | -Wtraditional 119 | -Wtraditional-conversion 120 | -Wtrigraphs 121 | -Wtype-limits 122 | -Wundeclared-selector 123 | -Wundef 124 | -Wuninitialized 125 | -Wunknown-pragmas 126 | -Wunreachable-code 127 | -Wunsafe-loop-optimizations 128 | -Wunused 129 | -Wunused-function 130 | -Wunused-label 131 | -Wunused-macros 132 | -Wunused-parameter 133 | -Wunused-value 134 | -Wunused-variable 135 | -Wvariadic-macros 136 | -Wvla 137 | -Wvolatile-register-var 138 | -Wwrite-strings 139 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-4.5.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Waddress 8 | -Waggregate-return 9 | -Wall 10 | -Warray-bounds 11 | -Wassign-intercept 12 | -Wattributes 13 | -Wbad-function-cast 14 | -Wbuiltin-macro-redefined 15 | -Wc++-compat 16 | -Wc++0x-compat 17 | -Wcast-align 18 | -Wcast-qual 19 | -Wchar-subscripts 20 | -Wclobbered 21 | -Wcomment 22 | -Wcomments 23 | -Wconversion 24 | -Wconversion-null 25 | -Wcoverage-mismatch 26 | -Wctor-dtor-privacy 27 | -Wdeclaration-after-statement 28 | -Wdeprecated 29 | -Wdeprecated-declarations 30 | -Wdisabled-optimization 31 | -Wdiv-by-zero 32 | -Weffc++ 33 | -Wempty-body 34 | -Wendif-labels 35 | -Wenum-compare 36 | -Werror-implicit-function-declaration 37 | -Wextra 38 | -Wfloat-equal 39 | -Wformat 40 | -Wformat-contains-nul 41 | -Wformat-extra-args 42 | -Wformat-nonliteral 43 | -Wformat-security 44 | -Wformat-y2k 45 | -Wformat-zero-length 46 | -Wformat= 47 | -Wframe-larger-than= 48 | -Wignored-qualifiers 49 | -Wimplicit 50 | -Wimplicit-function-declaration 51 | -Wimplicit-int 52 | -Wimport 53 | -Winit-self 54 | -Winline 55 | -Wint-to-pointer-cast 56 | -Winvalid-offsetof 57 | -Winvalid-pch 58 | -Wjump-misses-init 59 | -Wlarger-than- 60 | -Wlarger-than= 61 | -Wlogical-op 62 | -Wlong-long 63 | -Wmain 64 | -Wmissing-braces 65 | -Wmissing-declarations 66 | -Wmissing-field-initializers 67 | -Wmissing-format-attribute 68 | -Wmissing-include-dirs 69 | -Wmissing-noreturn 70 | -Wmissing-parameter-type 71 | -Wmissing-prototypes 72 | -Wmudflap 73 | -Wmultichar 74 | -Wnested-externs 75 | -Wnon-template-friend 76 | -Wnon-virtual-dtor 77 | -Wnonnull 78 | -Wnormalized= 79 | -Wold-style-cast 80 | -Wold-style-declaration 81 | -Wold-style-definition 82 | -Woverflow 83 | -Woverlength-strings 84 | -Woverloaded-virtual 85 | -Woverride-init 86 | -Wpacked 87 | -Wpacked-bitfield-compat 88 | -Wpadded 89 | -Wparentheses 90 | -Wpmf-conversions 91 | -Wpointer-arith 92 | -Wpointer-sign 93 | -Wpointer-to-int-cast 94 | -Wpragmas 95 | -Wprotocol 96 | -Wpsabi 97 | -Wredundant-decls 98 | -Wreorder 99 | -Wreturn-type 100 | -Wselector 101 | -Wsequence-point 102 | -Wshadow 103 | -Wsign-compare 104 | -Wsign-conversion 105 | -Wsign-promo 106 | -Wstack-protector 107 | -Wstrict-aliasing 108 | -Wstrict-aliasing= 109 | -Wstrict-null-sentinel 110 | -Wstrict-overflow 111 | -Wstrict-overflow= 112 | -Wstrict-prototypes 113 | -Wstrict-selector-match 114 | -Wswitch 115 | -Wswitch-default 116 | -Wswitch-enum 117 | -Wsync-nand 118 | -Wsynth 119 | -Wsystem-headers 120 | -Wtraditional 121 | -Wtraditional-conversion 122 | -Wtrigraphs 123 | -Wtype-limits 124 | -Wundeclared-selector 125 | -Wundef 126 | -Wuninitialized 127 | -Wunknown-pragmas 128 | -Wunreachable-code 129 | -Wunsafe-loop-optimizations 130 | -Wunsuffixed-float-constants 131 | -Wunused 132 | -Wunused-function 133 | -Wunused-label 134 | -Wunused-macros 135 | -Wunused-parameter 136 | -Wunused-result 137 | -Wunused-value 138 | -Wunused-variable 139 | -Wvariadic-macros 140 | -Wvla 141 | -Wvolatile-register-var 142 | -Wwrite-strings 143 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-4.6.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Waddress 8 | -Waggregate-return 9 | -Wall 10 | -Warray-bounds 11 | -Wassign-intercept 12 | -Wattributes 13 | -Wbad-function-cast 14 | -Wbuiltin-macro-redefined 15 | -Wc++-compat 16 | -Wc++0x-compat 17 | -Wcast-align 18 | -Wcast-qual 19 | -Wchar-subscripts 20 | -Wclobbered 21 | -Wcomment 22 | -Wcomments 23 | -Wconversion 24 | -Wconversion-null 25 | -Wcoverage-mismatch 26 | -Wcpp 27 | -Wctor-dtor-privacy 28 | -Wdeclaration-after-statement 29 | -Wdeprecated 30 | -Wdeprecated-declarations 31 | -Wdisabled-optimization 32 | -Wdiv-by-zero 33 | -Wdouble-promotion 34 | -Weffc++ 35 | -Wempty-body 36 | -Wendif-labels 37 | -Wenum-compare 38 | -Werror-implicit-function-declaration 39 | -Wextra 40 | -Wfloat-equal 41 | -Wformat 42 | -Wformat-contains-nul 43 | -Wformat-extra-args 44 | -Wformat-nonliteral 45 | -Wformat-security 46 | -Wformat-y2k 47 | -Wformat-zero-length 48 | -Wformat= 49 | -Wframe-larger-than= 50 | -Wignored-qualifiers 51 | -Wimplicit 52 | -Wimplicit-function-declaration 53 | -Wimplicit-int 54 | -Wimport # DUMMY switch 55 | -Winit-self 56 | -Winline 57 | -Wint-to-pointer-cast 58 | -Winvalid-offsetof 59 | -Winvalid-pch 60 | -Wjump-misses-init 61 | -Wlarger-than- 62 | -Wlarger-than= 63 | -Wlogical-op 64 | -Wlong-long 65 | -Wmain 66 | -Wmissing-braces 67 | -Wmissing-declarations 68 | -Wmissing-field-initializers 69 | -Wmissing-format-attribute 70 | -Wmissing-include-dirs 71 | -Wmissing-noreturn 72 | -Wmissing-parameter-type 73 | -Wmissing-prototypes 74 | -Wmudflap 75 | -Wmultichar 76 | -Wnested-externs 77 | -Wnoexcept 78 | -Wnon-template-friend 79 | -Wnon-virtual-dtor 80 | -Wnonnull 81 | -Wnormalized= 82 | -Wold-style-cast 83 | -Wold-style-declaration 84 | -Wold-style-definition 85 | -Woverflow 86 | -Woverlength-strings 87 | -Woverloaded-virtual 88 | -Woverride-init 89 | -Wpacked 90 | -Wpacked-bitfield-compat 91 | -Wpadded 92 | -Wparentheses 93 | -Wpmf-conversions 94 | -Wpointer-arith 95 | -Wpointer-sign 96 | -Wpointer-to-int-cast 97 | -Wpragmas 98 | -Wproperty-assign-default 99 | -Wprotocol 100 | -Wpsabi 101 | -Wredundant-decls 102 | -Wreorder 103 | -Wreturn-type 104 | -Wselector 105 | -Wsequence-point 106 | -Wshadow 107 | -Wsign-compare 108 | -Wsign-conversion 109 | -Wsign-promo 110 | -Wstack-protector 111 | -Wstrict-aliasing 112 | -Wstrict-aliasing= 113 | -Wstrict-null-sentinel 114 | -Wstrict-overflow 115 | -Wstrict-overflow= 116 | -Wstrict-prototypes 117 | -Wstrict-selector-match 118 | -Wsuggest-attribute=const 119 | -Wsuggest-attribute=noreturn 120 | -Wsuggest-attribute=pure 121 | -Wswitch 122 | -Wswitch-default 123 | -Wswitch-enum 124 | -Wsync-nand 125 | -Wsynth 126 | -Wsystem-headers 127 | -Wtraditional 128 | -Wtraditional-conversion 129 | -Wtrampolines 130 | -Wtrigraphs 131 | -Wtype-limits 132 | -Wundeclared-selector 133 | -Wundef 134 | -Wuninitialized 135 | -Wunknown-pragmas 136 | -Wunreachable-code # DUMMY switch 137 | -Wunsafe-loop-optimizations 138 | -Wunsuffixed-float-constants 139 | -Wunused 140 | -Wunused-but-set-parameter 141 | -Wunused-but-set-variable 142 | -Wunused-function 143 | -Wunused-label 144 | -Wunused-macros 145 | -Wunused-parameter 146 | -Wunused-result 147 | -Wunused-value 148 | -Wunused-variable 149 | -Wvariadic-macros 150 | -Wvla 151 | -Wvolatile-register-var 152 | -Wwrite-strings 153 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-4.7.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Waddress 8 | -Waggregate-return 9 | -Wall 10 | -Warray-bounds 11 | -Wassign-intercept 12 | -Wattributes 13 | -Wbad-function-cast 14 | -Wbuiltin-macro-redefined 15 | -Wc++-compat 16 | -Wc++0x-compat 17 | -Wc++11-compat 18 | -Wcast-align 19 | -Wcast-qual 20 | -Wchar-subscripts 21 | -Wclobbered 22 | -Wcomment 23 | -Wcomments 24 | -Wconversion 25 | -Wconversion-null 26 | -Wcoverage-mismatch 27 | -Wcpp 28 | -Wctor-dtor-privacy 29 | -Wdeclaration-after-statement 30 | -Wdelete-non-virtual-dtor 31 | -Wdeprecated 32 | -Wdeprecated-declarations 33 | -Wdisabled-optimization 34 | -Wdiv-by-zero 35 | -Wdouble-promotion 36 | -Weffc++ 37 | -Wempty-body 38 | -Wendif-labels 39 | -Wenum-compare 40 | -Werror-implicit-function-declaration 41 | -Wextra 42 | -Wfloat-equal 43 | -Wformat 44 | -Wformat-contains-nul 45 | -Wformat-extra-args 46 | -Wformat-nonliteral 47 | -Wformat-security 48 | -Wformat-y2k 49 | -Wformat-zero-length 50 | -Wformat= 51 | -Wframe-larger-than= 52 | -Wfree-nonheap-object 53 | -Wignored-qualifiers 54 | -Wimplicit 55 | -Wimplicit-function-declaration 56 | -Wimplicit-int 57 | -Wimport # DUMMY switch 58 | -Winit-self 59 | -Winline 60 | -Wint-to-pointer-cast 61 | -Winvalid-memory-model 62 | -Winvalid-offsetof 63 | -Winvalid-pch 64 | -Wjump-misses-init 65 | -Wlarger-than- 66 | -Wlarger-than= 67 | -Wlogical-op 68 | -Wlong-long 69 | -Wmain 70 | -Wmaybe-uninitialized 71 | -Wmissing-braces 72 | -Wmissing-declarations 73 | -Wmissing-field-initializers 74 | -Wmissing-format-attribute 75 | -Wmissing-include-dirs 76 | -Wmissing-noreturn 77 | -Wmissing-parameter-type 78 | -Wmissing-prototypes 79 | -Wmudflap 80 | -Wmultichar 81 | -Wnarrowing 82 | -Wnested-externs 83 | -Wnoexcept 84 | -Wnon-template-friend 85 | -Wnon-virtual-dtor 86 | -Wnonnull 87 | -Wnormalized= 88 | -Wold-style-cast 89 | -Wold-style-declaration 90 | -Wold-style-definition 91 | -Woverflow 92 | -Woverlength-strings 93 | -Woverloaded-virtual 94 | -Woverride-init 95 | -Wpacked 96 | -Wpacked-bitfield-compat 97 | -Wpadded 98 | -Wparentheses 99 | -Wpmf-conversions 100 | -Wpointer-arith 101 | -Wpointer-sign 102 | -Wpointer-to-int-cast 103 | -Wpragmas 104 | -Wproperty-assign-default 105 | -Wprotocol 106 | -Wpsabi 107 | -Wredundant-decls 108 | -Wreorder 109 | -Wreturn-type 110 | -Wselector 111 | -Wsequence-point 112 | -Wshadow 113 | -Wsign-compare 114 | -Wsign-conversion 115 | -Wsign-promo 116 | -Wstack-protector 117 | -Wstack-usage= 118 | -Wstrict-aliasing 119 | -Wstrict-aliasing= 120 | -Wstrict-null-sentinel 121 | -Wstrict-overflow 122 | -Wstrict-overflow= 123 | -Wstrict-prototypes 124 | -Wstrict-selector-match 125 | -Wsuggest-attribute=const 126 | -Wsuggest-attribute=noreturn 127 | -Wsuggest-attribute=pure 128 | -Wswitch 129 | -Wswitch-default 130 | -Wswitch-enum 131 | -Wsync-nand 132 | -Wsynth 133 | -Wsystem-headers 134 | -Wtraditional 135 | -Wtraditional-conversion 136 | -Wtrampolines 137 | -Wtrigraphs 138 | -Wtype-limits 139 | -Wundeclared-selector 140 | -Wundef 141 | -Wuninitialized 142 | -Wunknown-pragmas 143 | -Wunreachable-code # DUMMY switch 144 | -Wunsafe-loop-optimizations 145 | -Wunsuffixed-float-constants 146 | -Wunused 147 | -Wunused-but-set-parameter 148 | -Wunused-but-set-variable 149 | -Wunused-function 150 | -Wunused-label 151 | -Wunused-local-typedefs 152 | -Wunused-macros 153 | -Wunused-parameter 154 | -Wunused-result 155 | -Wunused-value 156 | -Wunused-variable 157 | -Wvariadic-macros 158 | -Wvector-operation-performance 159 | -Wvla 160 | -Wvolatile-register-var 161 | -Wwrite-strings 162 | -Wzero-as-null-pointer-constant 163 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-4.8.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Wabi-tag 8 | -Waddress 9 | -Waggregate-return 10 | -Waggressive-loop-optimizations 11 | -Wall 12 | -Warray-bounds 13 | -Wassign-intercept 14 | -Wattributes 15 | -Wbad-function-cast 16 | -Wbuiltin-macro-redefined 17 | -Wc++-compat 18 | -Wc++0x-compat 19 | -Wc++11-compat 20 | -Wcast-align 21 | -Wcast-qual 22 | -Wchar-subscripts 23 | -Wclobbered 24 | -Wcomment 25 | -Wcomments 26 | -Wconversion 27 | -Wconversion-null 28 | -Wcoverage-mismatch 29 | -Wcpp 30 | -Wctor-dtor-privacy 31 | -Wdeclaration-after-statement 32 | -Wdelete-non-virtual-dtor 33 | -Wdeprecated 34 | -Wdeprecated-declarations 35 | -Wdisabled-optimization 36 | -Wdiv-by-zero 37 | -Wdouble-promotion 38 | -Weffc++ 39 | -Wempty-body 40 | -Wendif-labels 41 | -Wenum-compare 42 | -Werror-implicit-function-declaration 43 | -Wextra 44 | -Wfloat-equal 45 | -Wformat 46 | -Wformat-contains-nul 47 | -Wformat-extra-args 48 | -Wformat-nonliteral 49 | -Wformat-security 50 | -Wformat-y2k 51 | -Wformat-zero-length 52 | -Wformat= 53 | -Wframe-larger-than= 54 | -Wfree-nonheap-object 55 | -Wignored-qualifiers 56 | -Wimplicit 57 | -Wimplicit-function-declaration 58 | -Wimplicit-int 59 | -Wimport # DUMMY switch 60 | -Winherited-variadic-ctor 61 | -Winit-self 62 | -Winline 63 | -Wint-to-pointer-cast 64 | -Winvalid-memory-model 65 | -Winvalid-offsetof 66 | -Winvalid-pch 67 | -Wjump-misses-init 68 | -Wlarger-than- 69 | -Wlarger-than= 70 | -Wliteral-suffix 71 | -Wlogical-op 72 | -Wlong-long 73 | -Wmain 74 | -Wmaybe-uninitialized 75 | -Wmissing-braces 76 | -Wmissing-declarations 77 | -Wmissing-field-initializers 78 | -Wmissing-format-attribute 79 | -Wmissing-include-dirs 80 | -Wmissing-noreturn 81 | -Wmissing-parameter-type 82 | -Wmissing-prototypes 83 | -Wmudflap 84 | -Wmultichar 85 | -Wnarrowing 86 | -Wnested-externs 87 | -Wnoexcept 88 | -Wnon-template-friend 89 | -Wnon-virtual-dtor 90 | -Wnonnull 91 | -Wnormalized= 92 | -Wold-style-cast 93 | -Wold-style-declaration 94 | -Wold-style-definition 95 | -Woverflow 96 | -Woverlength-strings 97 | -Woverloaded-virtual 98 | -Woverride-init 99 | -Wpacked 100 | -Wpacked-bitfield-compat 101 | -Wpadded 102 | -Wparentheses 103 | -Wpedantic 104 | -Wpmf-conversions 105 | -Wpointer-arith 106 | -Wpointer-sign 107 | -Wpointer-to-int-cast 108 | -Wpragmas 109 | -Wproperty-assign-default 110 | -Wprotocol 111 | -Wpsabi 112 | -Wredundant-decls 113 | -Wreorder 114 | -Wreturn-local-addr 115 | -Wreturn-type 116 | -Wselector 117 | -Wsequence-point 118 | -Wshadow 119 | -Wsign-compare 120 | -Wsign-conversion 121 | -Wsign-promo 122 | -Wsizeof-pointer-memaccess 123 | -Wstack-protector 124 | -Wstack-usage= 125 | -Wstrict-aliasing 126 | -Wstrict-aliasing= 127 | -Wstrict-null-sentinel 128 | -Wstrict-overflow 129 | -Wstrict-overflow= 130 | -Wstrict-prototypes 131 | -Wstrict-selector-match 132 | -Wsuggest-attribute=const 133 | -Wsuggest-attribute=format 134 | -Wsuggest-attribute=noreturn 135 | -Wsuggest-attribute=pure 136 | -Wswitch 137 | -Wswitch-default 138 | -Wswitch-enum 139 | -Wsync-nand 140 | -Wsynth 141 | -Wsystem-headers 142 | -Wtraditional 143 | -Wtraditional-conversion 144 | -Wtrampolines 145 | -Wtrigraphs 146 | -Wtype-limits 147 | -Wundeclared-selector 148 | -Wundef 149 | -Wuninitialized 150 | -Wunknown-pragmas 151 | -Wunreachable-code # DUMMY switch 152 | -Wunsafe-loop-optimizations 153 | -Wunsuffixed-float-constants 154 | -Wunused 155 | -Wunused-but-set-parameter 156 | -Wunused-but-set-variable 157 | -Wunused-function 158 | -Wunused-label 159 | -Wunused-local-typedefs 160 | -Wunused-macros 161 | -Wunused-parameter 162 | -Wunused-result 163 | -Wunused-value 164 | -Wunused-variable 165 | -Wuseless-cast 166 | -Wvarargs 167 | -Wvariadic-macros 168 | -Wvector-operation-performance 169 | -Wvirtual-move-assign 170 | -Wvla 171 | -Wvolatile-register-var 172 | -Wwrite-strings 173 | -Wzero-as-null-pointer-constant 174 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-4.9.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Wabi-tag 8 | -Waddress 9 | -Waggregate-return 10 | -Waggressive-loop-optimizations 11 | -Wall 12 | -Warray-bounds 13 | -Wassign-intercept 14 | -Wattributes 15 | -Wbad-function-cast 16 | -Wbuiltin-macro-redefined 17 | -Wc++-compat 18 | -Wc++0x-compat 19 | -Wc++11-compat 20 | -Wcast-align 21 | -Wcast-qual 22 | -Wchar-subscripts 23 | -Wclobbered 24 | -Wcomment 25 | -Wcomments 26 | -Wconditionally-supported 27 | -Wconversion 28 | -Wconversion-null 29 | -Wcoverage-mismatch 30 | -Wcpp 31 | -Wctor-dtor-privacy 32 | -Wdate-time 33 | -Wdeclaration-after-statement 34 | -Wdelete-incomplete 35 | -Wdelete-non-virtual-dtor 36 | -Wdeprecated 37 | -Wdeprecated-declarations 38 | -Wdisabled-optimization 39 | -Wdiv-by-zero 40 | -Wdouble-promotion 41 | -Weffc++ 42 | -Wempty-body 43 | -Wendif-labels 44 | -Wenum-compare 45 | -Werror-implicit-function-declaration 46 | -Wextra 47 | -Wfloat-conversion 48 | -Wfloat-equal 49 | -Wformat 50 | -Wformat-contains-nul 51 | -Wformat-extra-args 52 | -Wformat-nonliteral 53 | -Wformat-security 54 | -Wformat-y2k 55 | -Wformat-zero-length 56 | -Wformat= 57 | -Wframe-larger-than= 58 | -Wfree-nonheap-object 59 | -Wignored-qualifiers 60 | -Wimplicit 61 | -Wimplicit-function-declaration 62 | -Wimplicit-int 63 | -Wimport # DUMMY switch 64 | -Winherited-variadic-ctor 65 | -Winit-self 66 | -Winline 67 | -Wint-to-pointer-cast 68 | -Winvalid-memory-model 69 | -Winvalid-offsetof 70 | -Winvalid-pch 71 | -Wjump-misses-init 72 | -Wlarger-than- 73 | -Wlarger-than= 74 | -Wliteral-suffix 75 | -Wlogical-op 76 | -Wlong-long 77 | -Wmain 78 | -Wmaybe-uninitialized 79 | -Wmissing-braces 80 | -Wmissing-declarations 81 | -Wmissing-field-initializers 82 | -Wmissing-format-attribute 83 | -Wmissing-include-dirs 84 | -Wmissing-noreturn 85 | -Wmissing-parameter-type 86 | -Wmissing-prototypes 87 | -Wmudflap # DUMMY switch 88 | -Wmultichar 89 | -Wnarrowing 90 | -Wnested-externs 91 | -Wnoexcept 92 | -Wnon-template-friend 93 | -Wnon-virtual-dtor 94 | -Wnonnull 95 | -Wnormalized= 96 | -Wold-style-cast 97 | -Wold-style-declaration 98 | -Wold-style-definition 99 | -Wopenmp-simd 100 | -Woverflow 101 | -Woverlength-strings 102 | -Woverloaded-virtual 103 | -Woverride-init 104 | -Wpacked 105 | -Wpacked-bitfield-compat 106 | -Wpadded 107 | -Wparentheses 108 | -Wpedantic 109 | -Wpmf-conversions 110 | -Wpointer-arith 111 | -Wpointer-sign 112 | -Wpointer-to-int-cast 113 | -Wpragmas 114 | -Wproperty-assign-default 115 | -Wprotocol 116 | -Wpsabi 117 | -Wredundant-decls 118 | -Wreorder 119 | -Wreturn-local-addr 120 | -Wreturn-type 121 | -Wselector 122 | -Wsequence-point 123 | -Wshadow 124 | -Wsign-compare 125 | -Wsign-conversion 126 | -Wsign-promo 127 | -Wsizeof-pointer-memaccess 128 | -Wstack-protector 129 | -Wstack-usage= 130 | -Wstrict-aliasing 131 | -Wstrict-aliasing= 132 | -Wstrict-null-sentinel 133 | -Wstrict-overflow 134 | -Wstrict-overflow= 135 | -Wstrict-prototypes 136 | -Wstrict-selector-match 137 | -Wsuggest-attribute=const 138 | -Wsuggest-attribute=format 139 | -Wsuggest-attribute=noreturn 140 | -Wsuggest-attribute=pure 141 | -Wswitch 142 | -Wswitch-default 143 | -Wswitch-enum 144 | -Wsync-nand 145 | -Wsynth 146 | -Wsystem-headers 147 | -Wtraditional 148 | -Wtraditional-conversion 149 | -Wtrampolines 150 | -Wtrigraphs 151 | -Wtype-limits 152 | -Wundeclared-selector 153 | -Wundef 154 | -Wuninitialized 155 | -Wunknown-pragmas 156 | -Wunreachable-code # DUMMY switch 157 | -Wunsafe-loop-optimizations 158 | -Wunsuffixed-float-constants 159 | -Wunused 160 | -Wunused-but-set-parameter 161 | -Wunused-but-set-variable 162 | -Wunused-function 163 | -Wunused-label 164 | -Wunused-local-typedefs 165 | -Wunused-macros 166 | -Wunused-parameter 167 | -Wunused-result 168 | -Wunused-value 169 | -Wunused-variable 170 | -Wuseless-cast 171 | -Wvarargs 172 | -Wvariadic-macros 173 | -Wvector-operation-performance 174 | -Wvirtual-move-assign 175 | -Wvla 176 | -Wvolatile-register-var 177 | -Wwrite-strings 178 | -Wzero-as-null-pointer-constant 179 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-5.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Wabi-tag 8 | -Wabi= 9 | -Waddress 10 | -Waggregate-return 11 | -Waggressive-loop-optimizations 12 | -Wall 13 | -Warray-bounds 14 | -Warray-bounds= 15 | -Wassign-intercept 16 | -Wattributes 17 | -Wbad-function-cast 18 | -Wbool-compare 19 | -Wbuiltin-macro-redefined 20 | -Wc++-compat 21 | -Wc++0x-compat 22 | -Wc++11-compat 23 | -Wc++14-compat 24 | -Wc90-c99-compat 25 | -Wc99-c11-compat 26 | -Wcast-align 27 | -Wcast-qual 28 | -Wchar-subscripts 29 | -Wchkp 30 | -Wclobbered 31 | -Wcomment 32 | -Wcomments 33 | -Wconditionally-supported 34 | -Wconversion 35 | -Wconversion-null 36 | -Wcoverage-mismatch 37 | -Wcpp 38 | -Wctor-dtor-privacy 39 | -Wdate-time 40 | -Wdeclaration-after-statement 41 | -Wdelete-incomplete 42 | -Wdelete-non-virtual-dtor 43 | -Wdeprecated 44 | -Wdeprecated-declarations 45 | -Wdesignated-init 46 | -Wdisabled-optimization 47 | -Wdiscarded-array-qualifiers 48 | -Wdiscarded-qualifiers 49 | -Wdiv-by-zero 50 | -Wdouble-promotion 51 | -Weffc++ 52 | -Wempty-body 53 | -Wendif-labels 54 | -Wenum-compare 55 | -Werror-implicit-function-declaration 56 | -Wextra 57 | -Wfloat-conversion 58 | -Wfloat-equal 59 | -Wformat 60 | -Wformat-contains-nul 61 | -Wformat-extra-args 62 | -Wformat-nonliteral 63 | -Wformat-security 64 | -Wformat-signedness 65 | -Wformat-y2k 66 | -Wformat-zero-length 67 | -Wformat= 68 | -Wframe-larger-than= 69 | -Wfree-nonheap-object 70 | -Wignored-qualifiers 71 | -Wimplicit 72 | -Wimplicit-function-declaration 73 | -Wimplicit-int 74 | -Wimport # DUMMY switch 75 | -Wincompatible-pointer-types 76 | -Winherited-variadic-ctor 77 | -Winit-self 78 | -Winline 79 | -Wint-conversion 80 | -Wint-to-pointer-cast 81 | -Winvalid-memory-model 82 | -Winvalid-offsetof 83 | -Winvalid-pch 84 | -Wjump-misses-init 85 | -Wlarger-than- 86 | -Wlarger-than= 87 | -Wliteral-suffix 88 | -Wlogical-not-parentheses 89 | -Wlogical-op 90 | -Wlong-long 91 | -Wmain 92 | -Wmaybe-uninitialized 93 | -Wmemset-transposed-args 94 | -Wmissing-braces 95 | -Wmissing-declarations 96 | -Wmissing-field-initializers 97 | -Wmissing-format-attribute 98 | -Wmissing-include-dirs 99 | -Wmissing-noreturn 100 | -Wmissing-parameter-type 101 | -Wmissing-prototypes 102 | -Wmudflap # DUMMY switch 103 | -Wmultichar 104 | -Wnarrowing 105 | -Wnested-externs 106 | -Wnoexcept 107 | -Wnon-template-friend 108 | -Wnon-virtual-dtor 109 | -Wnonnull 110 | -Wnormalized 111 | -Wnormalized= 112 | -Wodr 113 | -Wold-style-cast 114 | -Wold-style-declaration 115 | -Wold-style-definition 116 | -Wopenmp-simd 117 | -Woverflow 118 | -Woverlength-strings 119 | -Woverloaded-virtual 120 | -Woverride-init 121 | -Wpacked 122 | -Wpacked-bitfield-compat 123 | -Wpadded 124 | -Wparentheses 125 | -Wpedantic 126 | -Wpmf-conversions 127 | -Wpointer-arith 128 | -Wpointer-sign 129 | -Wpointer-to-int-cast 130 | -Wpragmas 131 | -Wproperty-assign-default 132 | -Wprotocol 133 | -Wpsabi 134 | -Wredundant-decls 135 | -Wreorder 136 | -Wreturn-local-addr 137 | -Wreturn-type 138 | -Wselector 139 | -Wsequence-point 140 | -Wshadow 141 | -Wshadow-ivar 142 | -Wshift-count-negative 143 | -Wshift-count-overflow 144 | -Wsign-compare 145 | -Wsign-conversion 146 | -Wsign-promo 147 | -Wsized-deallocation 148 | -Wsizeof-array-argument 149 | -Wsizeof-pointer-memaccess 150 | -Wstack-protector 151 | -Wstack-usage= 152 | -Wstrict-aliasing 153 | -Wstrict-aliasing= 154 | -Wstrict-null-sentinel 155 | -Wstrict-overflow 156 | -Wstrict-overflow= 157 | -Wstrict-prototypes 158 | -Wstrict-selector-match 159 | -Wsuggest-attribute=const 160 | -Wsuggest-attribute=format 161 | -Wsuggest-attribute=noreturn 162 | -Wsuggest-attribute=pure 163 | -Wsuggest-final-methods 164 | -Wsuggest-final-types 165 | -Wsuggest-override 166 | -Wswitch 167 | -Wswitch-bool 168 | -Wswitch-default 169 | -Wswitch-enum 170 | -Wsync-nand 171 | -Wsynth 172 | -Wsystem-headers 173 | -Wtraditional 174 | -Wtraditional-conversion 175 | -Wtrampolines 176 | -Wtrigraphs 177 | -Wtype-limits 178 | -Wundeclared-selector 179 | -Wundef 180 | -Wuninitialized 181 | -Wunknown-pragmas 182 | -Wunreachable-code # DUMMY switch 183 | -Wunsafe-loop-optimizations 184 | -Wunsuffixed-float-constants 185 | -Wunused 186 | -Wunused-but-set-parameter 187 | -Wunused-but-set-variable 188 | -Wunused-function 189 | -Wunused-label 190 | -Wunused-local-typedefs 191 | -Wunused-macros 192 | -Wunused-parameter 193 | -Wunused-result 194 | -Wunused-value 195 | -Wunused-variable 196 | -Wuseless-cast 197 | -Wvarargs 198 | -Wvariadic-macros 199 | -Wvector-operation-performance 200 | -Wvirtual-move-assign 201 | -Wvla 202 | -Wvolatile-register-var 203 | -Wwrite-strings 204 | -Wzero-as-null-pointer-constant 205 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-6.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Wabi-tag 8 | -Wabi= 9 | -Waddress 10 | -Waggregate-return 11 | -Waggressive-loop-optimizations 12 | -Wall 13 | -Warray-bounds 14 | -Warray-bounds= 15 | -Wassign-intercept 16 | -Wattributes 17 | -Wbad-function-cast 18 | -Wbool-compare 19 | -Wbuiltin-macro-redefined 20 | -Wc++-compat 21 | -Wc++0x-compat 22 | -Wc++11-compat 23 | -Wc++14-compat 24 | -Wc90-c99-compat 25 | -Wc99-c11-compat 26 | -Wcast-align 27 | -Wcast-qual 28 | -Wchar-subscripts 29 | -Wchkp 30 | -Wclobbered 31 | -Wcomment 32 | -Wcomments 33 | -Wconditionally-supported 34 | -Wconversion 35 | -Wconversion-null 36 | -Wcoverage-mismatch 37 | -Wcpp 38 | -Wctor-dtor-privacy 39 | -Wdate-time 40 | -Wdeclaration-after-statement 41 | -Wdelete-incomplete 42 | -Wdelete-non-virtual-dtor 43 | -Wdeprecated 44 | -Wdeprecated-declarations 45 | -Wdesignated-init 46 | -Wdisabled-optimization 47 | -Wdiscarded-array-qualifiers 48 | -Wdiscarded-qualifiers 49 | -Wdiv-by-zero 50 | -Wdouble-promotion 51 | -Wduplicated-cond 52 | -Weffc++ 53 | -Wempty-body 54 | -Wendif-labels 55 | -Wenum-compare 56 | -Werror-implicit-function-declaration 57 | -Wextra 58 | -Wfloat-conversion 59 | -Wfloat-equal 60 | -Wformat 61 | -Wformat-contains-nul 62 | -Wformat-extra-args 63 | -Wformat-nonliteral 64 | -Wformat-security 65 | -Wformat-signedness 66 | -Wformat-y2k 67 | -Wformat-zero-length 68 | -Wformat= 69 | -Wframe-address 70 | -Wframe-larger-than= 71 | -Wfree-nonheap-object 72 | -Whsa 73 | -Wignored-attributes 74 | -Wignored-qualifiers 75 | -Wimplicit 76 | -Wimplicit-function-declaration 77 | -Wimplicit-int 78 | -Wimport # DUMMY switch 79 | -Wincompatible-pointer-types 80 | -Winherited-variadic-ctor 81 | -Winit-self 82 | -Winline 83 | -Wint-conversion 84 | -Wint-to-pointer-cast 85 | -Winvalid-memory-model 86 | -Winvalid-offsetof 87 | -Winvalid-pch 88 | -Wjump-misses-init 89 | -Wlarger-than- 90 | -Wlarger-than= 91 | -Wliteral-suffix 92 | -Wlogical-not-parentheses 93 | -Wlogical-op 94 | -Wlong-long 95 | -Wlto-type-mismatch 96 | -Wmain 97 | -Wmaybe-uninitialized 98 | -Wmemset-transposed-args 99 | -Wmisleading-indentation 100 | -Wmissing-braces 101 | -Wmissing-declarations 102 | -Wmissing-field-initializers 103 | -Wmissing-format-attribute 104 | -Wmissing-include-dirs 105 | -Wmissing-noreturn 106 | -Wmissing-parameter-type 107 | -Wmissing-prototypes 108 | -Wmudflap # DUMMY switch 109 | -Wmultichar 110 | -Wmultiple-inheritance 111 | -Wnamespaces 112 | -Wnarrowing 113 | -Wnested-externs 114 | -Wnoexcept 115 | -Wnon-template-friend 116 | -Wnon-virtual-dtor 117 | -Wnonnull 118 | -Wnonnull-compare 119 | -Wnormalized 120 | -Wnormalized= 121 | -Wnull-dereference 122 | -Wodr 123 | -Wold-style-cast 124 | -Wold-style-declaration 125 | -Wold-style-definition 126 | -Wopenmp-simd 127 | -Woverflow 128 | -Woverlength-strings 129 | -Woverloaded-virtual 130 | -Woverride-init 131 | -Woverride-init-side-effects 132 | -Wpacked 133 | -Wpacked-bitfield-compat 134 | -Wpadded 135 | -Wparentheses 136 | -Wpedantic 137 | -Wplacement-new 138 | -Wplacement-new= 139 | -Wpmf-conversions 140 | -Wpointer-arith 141 | -Wpointer-sign 142 | -Wpointer-to-int-cast 143 | -Wpragmas 144 | -Wproperty-assign-default 145 | -Wprotocol 146 | -Wpsabi 147 | -Wredundant-decls 148 | -Wreorder 149 | -Wreturn-local-addr 150 | -Wreturn-type 151 | -Wscalar-storage-order 152 | -Wselector 153 | -Wsequence-point 154 | -Wshadow 155 | -Wshadow-ivar 156 | -Wshift-count-negative 157 | -Wshift-count-overflow 158 | -Wshift-negative-value 159 | -Wshift-overflow 160 | -Wshift-overflow= 161 | -Wsign-compare 162 | -Wsign-conversion 163 | -Wsign-promo 164 | -Wsized-deallocation 165 | -Wsizeof-array-argument 166 | -Wsizeof-pointer-memaccess 167 | -Wstack-protector 168 | -Wstack-usage= 169 | -Wstrict-aliasing 170 | -Wstrict-aliasing= 171 | -Wstrict-null-sentinel 172 | -Wstrict-overflow 173 | -Wstrict-overflow= 174 | -Wstrict-prototypes 175 | -Wstrict-selector-match 176 | -Wsubobject-linkage 177 | -Wsuggest-attribute=const 178 | -Wsuggest-attribute=format 179 | -Wsuggest-attribute=noreturn 180 | -Wsuggest-attribute=pure 181 | -Wsuggest-final-methods 182 | -Wsuggest-final-types 183 | -Wsuggest-override 184 | -Wswitch 185 | -Wswitch-bool 186 | -Wswitch-default 187 | -Wswitch-enum 188 | -Wsync-nand 189 | -Wsynth 190 | -Wsystem-headers 191 | -Wtautological-compare 192 | -Wtemplates 193 | -Wterminate 194 | -Wtraditional 195 | -Wtraditional-conversion 196 | -Wtrampolines 197 | -Wtrigraphs 198 | -Wtype-limits 199 | -Wundeclared-selector 200 | -Wundef 201 | -Wuninitialized 202 | -Wunknown-pragmas 203 | -Wunreachable-code # DUMMY switch 204 | -Wunsafe-loop-optimizations 205 | -Wunsuffixed-float-constants 206 | -Wunused 207 | -Wunused-but-set-parameter 208 | -Wunused-but-set-variable 209 | -Wunused-const-variable 210 | -Wunused-const-variable= 211 | -Wunused-function 212 | -Wunused-label 213 | -Wunused-local-typedefs 214 | -Wunused-macros 215 | -Wunused-parameter 216 | -Wunused-result 217 | -Wunused-value 218 | -Wunused-variable 219 | -Wuseless-cast 220 | -Wvarargs 221 | -Wvariadic-macros 222 | -Wvector-operation-performance 223 | -Wvirtual-inheritance 224 | -Wvirtual-move-assign 225 | -Wvla 226 | -Wvolatile-register-var 227 | -Wwrite-strings 228 | -Wzero-as-null-pointer-constant 229 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-7.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Wabi-tag 8 | -Wabi= 9 | -Waddress 10 | -Waggregate-return 11 | -Waggressive-loop-optimizations 12 | -Waligned-new 13 | -Waligned-new= 14 | -Wall 15 | -Walloc-size-larger-than= 16 | -Walloc-zero 17 | -Walloca 18 | -Walloca-larger-than= 19 | -Warray-bounds 20 | -Warray-bounds= 21 | -Wassign-intercept 22 | -Wattributes 23 | -Wbad-function-cast 24 | -Wbool-compare 25 | -Wbool-operation 26 | -Wbuiltin-declaration-mismatch 27 | -Wbuiltin-macro-redefined 28 | -Wc++-compat 29 | -Wc++0x-compat 30 | -Wc++11-compat 31 | -Wc++14-compat 32 | -Wc++17-compat 33 | -Wc++1z-compat 34 | -Wc90-c99-compat 35 | -Wc99-c11-compat 36 | -Wcast-align 37 | -Wcast-qual 38 | -Wchar-subscripts 39 | -Wchkp 40 | -Wclobbered 41 | -Wcomment 42 | -Wcomments 43 | -Wconditionally-supported 44 | -Wconversion 45 | -Wconversion-null 46 | -Wcoverage-mismatch 47 | -Wcpp 48 | -Wctor-dtor-privacy 49 | -Wdangling-else 50 | -Wdate-time 51 | -Wdeclaration-after-statement 52 | -Wdelete-incomplete 53 | -Wdelete-non-virtual-dtor 54 | -Wdeprecated 55 | -Wdeprecated-declarations 56 | -Wdesignated-init 57 | -Wdisabled-optimization 58 | -Wdiscarded-array-qualifiers 59 | -Wdiscarded-qualifiers 60 | -Wdiv-by-zero 61 | -Wdouble-promotion 62 | -Wduplicate-decl-specifier 63 | -Wduplicated-branches 64 | -Wduplicated-cond 65 | -Weffc++ 66 | -Wempty-body 67 | -Wendif-labels 68 | -Wenum-compare 69 | -Werror-implicit-function-declaration 70 | -Wexpansion-to-defined 71 | -Wextra 72 | -Wfloat-conversion 73 | -Wfloat-equal 74 | -Wformat 75 | -Wformat-contains-nul 76 | -Wformat-extra-args 77 | -Wformat-nonliteral 78 | -Wformat-overflow 79 | -Wformat-overflow= 80 | -Wformat-security 81 | -Wformat-signedness 82 | -Wformat-truncation 83 | -Wformat-truncation= 84 | -Wformat-y2k 85 | -Wformat-zero-length 86 | -Wformat= 87 | -Wframe-address 88 | -Wframe-larger-than= 89 | -Wfree-nonheap-object 90 | -Whsa 91 | -Wignored-attributes 92 | -Wignored-qualifiers 93 | -Wimplicit 94 | -Wimplicit-fallthrough 95 | -Wimplicit-fallthrough= 96 | -Wimplicit-function-declaration 97 | -Wimplicit-int 98 | -Wimport # DUMMY switch 99 | -Wincompatible-pointer-types 100 | -Winherited-variadic-ctor 101 | -Winit-self 102 | -Winline 103 | -Wint-conversion 104 | -Wint-in-bool-context 105 | -Wint-to-pointer-cast 106 | -Winvalid-memory-model 107 | -Winvalid-offsetof 108 | -Winvalid-pch 109 | -Wjump-misses-init 110 | -Wlarger-than- 111 | -Wlarger-than= 112 | -Wliteral-suffix 113 | -Wlogical-not-parentheses 114 | -Wlogical-op 115 | -Wlong-long 116 | -Wlto-type-mismatch 117 | -Wmain 118 | -Wmaybe-uninitialized 119 | -Wmemset-elt-size 120 | -Wmemset-transposed-args 121 | -Wmisleading-indentation 122 | -Wmissing-braces 123 | -Wmissing-declarations 124 | -Wmissing-field-initializers 125 | -Wmissing-format-attribute 126 | -Wmissing-include-dirs 127 | -Wmissing-noreturn 128 | -Wmissing-parameter-type 129 | -Wmissing-prototypes 130 | -Wmudflap # DUMMY switch 131 | -Wmultichar 132 | -Wmultiple-inheritance 133 | -Wnamespaces 134 | -Wnarrowing 135 | -Wnested-externs 136 | -Wnoexcept 137 | -Wnoexcept-type 138 | -Wnon-template-friend 139 | -Wnon-virtual-dtor 140 | -Wnonnull 141 | -Wnonnull-compare 142 | -Wnormalized 143 | -Wnormalized= 144 | -Wnull-dereference 145 | -Wodr 146 | -Wold-style-cast 147 | -Wold-style-declaration 148 | -Wold-style-definition 149 | -Wopenmp-simd 150 | -Woverflow 151 | -Woverlength-strings 152 | -Woverloaded-virtual 153 | -Woverride-init 154 | -Woverride-init-side-effects 155 | -Wpacked 156 | -Wpacked-bitfield-compat 157 | -Wpadded 158 | -Wparentheses 159 | -Wpedantic 160 | -Wplacement-new 161 | -Wplacement-new= 162 | -Wpmf-conversions 163 | -Wpointer-arith 164 | -Wpointer-compare 165 | -Wpointer-sign 166 | -Wpointer-to-int-cast 167 | -Wpragmas 168 | -Wproperty-assign-default 169 | -Wprotocol 170 | -Wpsabi 171 | -Wredundant-decls 172 | -Wregister 173 | -Wreorder 174 | -Wrestrict 175 | -Wreturn-local-addr 176 | -Wreturn-type 177 | -Wscalar-storage-order 178 | -Wselector 179 | -Wsequence-point 180 | -Wshadow 181 | -Wshadow-compatible-local 182 | -Wshadow-ivar 183 | -Wshadow-local 184 | -Wshadow=compatible-local 185 | -Wshadow=global 186 | -Wshadow=local 187 | -Wshift-count-negative 188 | -Wshift-count-overflow 189 | -Wshift-negative-value 190 | -Wshift-overflow 191 | -Wshift-overflow= 192 | -Wsign-compare 193 | -Wsign-conversion 194 | -Wsign-promo 195 | -Wsized-deallocation 196 | -Wsizeof-array-argument 197 | -Wsizeof-pointer-memaccess 198 | -Wstack-protector 199 | -Wstack-usage= 200 | -Wstrict-aliasing 201 | -Wstrict-aliasing= 202 | -Wstrict-null-sentinel 203 | -Wstrict-overflow 204 | -Wstrict-overflow= 205 | -Wstrict-prototypes 206 | -Wstrict-selector-match 207 | -Wstringop-overflow 208 | -Wstringop-overflow= 209 | -Wsubobject-linkage 210 | -Wsuggest-attribute=const 211 | -Wsuggest-attribute=format 212 | -Wsuggest-attribute=noreturn 213 | -Wsuggest-attribute=pure 214 | -Wsuggest-final-methods 215 | -Wsuggest-final-types 216 | -Wsuggest-override 217 | -Wswitch 218 | -Wswitch-bool 219 | -Wswitch-default 220 | -Wswitch-enum 221 | -Wswitch-unreachable 222 | -Wsync-nand 223 | -Wsynth 224 | -Wsystem-headers 225 | -Wtautological-compare 226 | -Wtemplates 227 | -Wterminate 228 | -Wtraditional 229 | -Wtraditional-conversion 230 | -Wtrampolines 231 | -Wtrigraphs 232 | -Wtype-limits 233 | -Wundeclared-selector 234 | -Wundef 235 | -Wuninitialized 236 | -Wunknown-pragmas 237 | -Wunreachable-code # DUMMY switch 238 | -Wunsafe-loop-optimizations 239 | -Wunsuffixed-float-constants 240 | -Wunused 241 | -Wunused-but-set-parameter 242 | -Wunused-but-set-variable 243 | -Wunused-const-variable 244 | -Wunused-const-variable= 245 | -Wunused-function 246 | -Wunused-label 247 | -Wunused-local-typedefs 248 | -Wunused-macros 249 | -Wunused-parameter 250 | -Wunused-result 251 | -Wunused-value 252 | -Wunused-variable 253 | -Wuseless-cast 254 | -Wvarargs 255 | -Wvariadic-macros 256 | -Wvector-operation-performance 257 | -Wvirtual-inheritance 258 | -Wvirtual-move-assign 259 | -Wvla 260 | -Wvla-larger-than= 261 | -Wvolatile-register-var 262 | -Wwrite-strings 263 | -Wzero-as-null-pointer-constant 264 | -------------------------------------------------------------------------------- /gcc/warnings-gcc-unique-8.txt: -------------------------------------------------------------------------------- 1 | --all-warnings 2 | --extra-warnings 3 | --pedantic 4 | -pedantic 5 | -W 6 | -Wabi 7 | -Wabi-tag 8 | -Wabi= 9 | -Waddress 10 | -Waggregate-return 11 | -Waggressive-loop-optimizations 12 | -Waligned-new 13 | -Waligned-new= 14 | -Wall 15 | -Walloc-size-larger-than= 16 | -Walloc-zero 17 | -Walloca 18 | -Walloca-larger-than= 19 | -Warray-bounds 20 | -Warray-bounds= 21 | -Wassign-intercept 22 | -Wattribute-alias 23 | -Wattributes 24 | -Wbad-function-cast 25 | -Wbool-compare 26 | -Wbool-operation 27 | -Wbuiltin-declaration-mismatch 28 | -Wbuiltin-macro-redefined 29 | -Wc++-compat 30 | -Wc++0x-compat 31 | -Wc++11-compat 32 | -Wc++14-compat 33 | -Wc++17-compat 34 | -Wc++1z-compat 35 | -Wc90-c99-compat 36 | -Wc99-c11-compat 37 | -Wcast-align 38 | -Wcast-align=strict 39 | -Wcast-function-type 40 | -Wcast-qual 41 | -Wcatch-value 42 | -Wcatch-value= 43 | -Wchar-subscripts 44 | -Wchkp 45 | -Wclass-memaccess 46 | -Wclobbered 47 | -Wcomment 48 | -Wcomments 49 | -Wconditionally-supported 50 | -Wconversion 51 | -Wconversion-null 52 | -Wcoverage-mismatch 53 | -Wcpp 54 | -Wctor-dtor-privacy 55 | -Wdangling-else 56 | -Wdate-time 57 | -Wdeclaration-after-statement 58 | -Wdelete-incomplete 59 | -Wdelete-non-virtual-dtor 60 | -Wdeprecated 61 | -Wdeprecated-declarations 62 | -Wdesignated-init 63 | -Wdisabled-optimization 64 | -Wdiscarded-array-qualifiers 65 | -Wdiscarded-qualifiers 66 | -Wdiv-by-zero 67 | -Wdouble-promotion 68 | -Wduplicate-decl-specifier 69 | -Wduplicated-branches 70 | -Wduplicated-cond 71 | -Weffc++ 72 | -Wempty-body 73 | -Wendif-labels 74 | -Wenum-compare 75 | -Werror-implicit-function-declaration 76 | -Wexpansion-to-defined 77 | -Wextra 78 | -Wextra-semi 79 | -Wfloat-conversion 80 | -Wfloat-equal 81 | -Wformat 82 | -Wformat-contains-nul 83 | -Wformat-extra-args 84 | -Wformat-nonliteral 85 | -Wformat-overflow 86 | -Wformat-overflow= 87 | -Wformat-security 88 | -Wformat-signedness 89 | -Wformat-truncation 90 | -Wformat-truncation= 91 | -Wformat-y2k 92 | -Wformat-zero-length 93 | -Wformat= 94 | -Wframe-address 95 | -Wframe-larger-than= 96 | -Wfree-nonheap-object 97 | -Whsa 98 | -Wif-not-aligned 99 | -Wignored-attributes 100 | -Wignored-qualifiers 101 | -Wimplicit 102 | -Wimplicit-fallthrough 103 | -Wimplicit-fallthrough= 104 | -Wimplicit-function-declaration 105 | -Wimplicit-int 106 | -Wimport # DUMMY switch 107 | -Wincompatible-pointer-types 108 | -Winherited-variadic-ctor 109 | -Winit-self 110 | -Winline 111 | -Wint-conversion 112 | -Wint-in-bool-context 113 | -Wint-to-pointer-cast 114 | -Winvalid-memory-model 115 | -Winvalid-offsetof 116 | -Winvalid-pch 117 | -Wjump-misses-init 118 | -Wlarger-than- 119 | -Wlarger-than= 120 | -Wliteral-suffix 121 | -Wlogical-not-parentheses 122 | -Wlogical-op 123 | -Wlong-long 124 | -Wlto-type-mismatch 125 | -Wmain 126 | -Wmaybe-uninitialized 127 | -Wmemset-elt-size 128 | -Wmemset-transposed-args 129 | -Wmisleading-indentation 130 | -Wmissing-attributes 131 | -Wmissing-braces 132 | -Wmissing-declarations 133 | -Wmissing-field-initializers 134 | -Wmissing-format-attribute 135 | -Wmissing-include-dirs 136 | -Wmissing-noreturn 137 | -Wmissing-parameter-type 138 | -Wmissing-prototypes 139 | -Wmudflap # DUMMY switch 140 | -Wmultichar 141 | -Wmultiple-inheritance 142 | -Wmultistatement-macros 143 | -Wnamespaces 144 | -Wnarrowing 145 | -Wnested-externs 146 | -Wnoexcept 147 | -Wnoexcept-type 148 | -Wnon-template-friend 149 | -Wnon-virtual-dtor 150 | -Wnonnull 151 | -Wnonnull-compare 152 | -Wnormalized 153 | -Wnormalized= 154 | -Wnull-dereference 155 | -Wodr 156 | -Wold-style-cast 157 | -Wold-style-declaration 158 | -Wold-style-definition 159 | -Wopenmp-simd 160 | -Woverflow 161 | -Woverlength-strings 162 | -Woverloaded-virtual 163 | -Woverride-init 164 | -Woverride-init-side-effects 165 | -Wpacked 166 | -Wpacked-bitfield-compat 167 | -Wpacked-not-aligned 168 | -Wpadded 169 | -Wparentheses 170 | -Wpedantic 171 | -Wplacement-new 172 | -Wplacement-new= 173 | -Wpmf-conversions 174 | -Wpointer-arith 175 | -Wpointer-compare 176 | -Wpointer-sign 177 | -Wpointer-to-int-cast 178 | -Wpragmas 179 | -Wproperty-assign-default 180 | -Wprotocol 181 | -Wpsabi 182 | -Wredundant-decls 183 | -Wregister 184 | -Wreorder 185 | -Wrestrict 186 | -Wreturn-local-addr 187 | -Wreturn-type 188 | -Wscalar-storage-order 189 | -Wselector 190 | -Wsequence-point 191 | -Wshadow 192 | -Wshadow-compatible-local 193 | -Wshadow-ivar 194 | -Wshadow-local 195 | -Wshadow=compatible-local 196 | -Wshadow=global 197 | -Wshadow=local 198 | -Wshift-count-negative 199 | -Wshift-count-overflow 200 | -Wshift-negative-value 201 | -Wshift-overflow 202 | -Wshift-overflow= 203 | -Wsign-compare 204 | -Wsign-conversion 205 | -Wsign-promo 206 | -Wsized-deallocation 207 | -Wsizeof-array-argument 208 | -Wsizeof-pointer-div 209 | -Wsizeof-pointer-memaccess 210 | -Wstack-protector 211 | -Wstack-usage= 212 | -Wstrict-aliasing 213 | -Wstrict-aliasing= 214 | -Wstrict-null-sentinel 215 | -Wstrict-overflow 216 | -Wstrict-overflow= 217 | -Wstrict-prototypes 218 | -Wstrict-selector-match 219 | -Wstringop-overflow 220 | -Wstringop-overflow= 221 | -Wstringop-truncation 222 | -Wsubobject-linkage 223 | -Wsuggest-attribute=cold 224 | -Wsuggest-attribute=const 225 | -Wsuggest-attribute=format 226 | -Wsuggest-attribute=malloc 227 | -Wsuggest-attribute=noreturn 228 | -Wsuggest-attribute=pure 229 | -Wsuggest-final-methods 230 | -Wsuggest-final-types 231 | -Wsuggest-override 232 | -Wswitch 233 | -Wswitch-bool 234 | -Wswitch-default 235 | -Wswitch-enum 236 | -Wswitch-unreachable 237 | -Wsync-nand 238 | -Wsynth 239 | -Wsystem-headers 240 | -Wtautological-compare 241 | -Wtemplates 242 | -Wterminate 243 | -Wtraditional 244 | -Wtraditional-conversion 245 | -Wtrampolines 246 | -Wtrigraphs 247 | -Wtype-limits 248 | -Wundeclared-selector 249 | -Wundef 250 | -Wuninitialized 251 | -Wunknown-pragmas 252 | -Wunreachable-code # DUMMY switch 253 | -Wunsafe-loop-optimizations # DUMMY switch 254 | -Wunsuffixed-float-constants 255 | -Wunused 256 | -Wunused-but-set-parameter 257 | -Wunused-but-set-variable 258 | -Wunused-const-variable 259 | -Wunused-const-variable= 260 | -Wunused-function 261 | -Wunused-label 262 | -Wunused-local-typedefs 263 | -Wunused-macros 264 | -Wunused-parameter 265 | -Wunused-result 266 | -Wunused-value 267 | -Wunused-variable 268 | -Wuseless-cast 269 | -Wvarargs 270 | -Wvariadic-macros 271 | -Wvector-operation-performance 272 | -Wvirtual-inheritance 273 | -Wvirtual-move-assign 274 | -Wvla 275 | -Wvla-larger-than= 276 | -Wvolatile-register-var 277 | -Wwrite-strings 278 | -Wzero-as-null-pointer-constant 279 | -------------------------------------------------------------------------------- /parsers/.gitignore: -------------------------------------------------------------------------------- 1 | # Generic Python files 2 | *.pyc 3 | 4 | # Ninja database files: 5 | .ninja_* 6 | 7 | # Files generated by antlr 8 | TableGenLexer.py 9 | TableGenParser.py 10 | TableGenListener.py 11 | TableGen.tokens 12 | TableGen.interp 13 | TableGenLexer.tokens 14 | TableGenLexer.interp 15 | 16 | # Files generated by antlr 17 | GccOptionsLexer.py 18 | GccOptionsParser.py 19 | GccOptionsListener.py 20 | GccOptions.tokens 21 | GccOptions.interp 22 | GccOptionsLexer.tokens 23 | GccOptionsLexer.interp 24 | -------------------------------------------------------------------------------- /parsers/GccOptions.g4: -------------------------------------------------------------------------------- 1 | grammar GccOptions; 2 | 3 | options 4 | { 5 | language = Python3; 6 | } 7 | 8 | optionAttributes : optionAttribute (SPACE optionAttribute)* SPACE? EOF ; 9 | 10 | optionAttribute : variableName SPACE* trailer? ; 11 | 12 | variableName : NAME_LITERAL ; 13 | 14 | trailer : OPEN_PAREN argumentList? CLOSE_PAREN ; 15 | 16 | argumentList : argument (COMMA SPACE* argument)* ; 17 | 18 | argument : ternary ; 19 | 20 | ternary 21 | : ternary SPACE* '?' SPACE* ternary+ SPACE* ':' SPACE* ternary 22 | | orTest ; 23 | 24 | orTest : andTest (SPACE* OR SPACE* andTest)* ; 25 | 26 | OR : '||' ; 27 | 28 | andTest : comparison (SPACE* AND SPACE* comparison)* ; 29 | 30 | AND : '&&' ; 31 | 32 | comparison : atomlist (SPACE* compOp SPACE* atomlist)* ; 33 | 34 | compOp 35 | : '>=' 36 | ; 37 | 38 | atomlist : atom (SPACE atom)* ; 39 | 40 | atom 41 | : 42 | INTEGER_LITERAL 43 | | NAME_LITERAL 44 | | PERCENTAGE_LITERAL 45 | | WARNING_TEXT_LITERAL 46 | ; 47 | 48 | WARNING_TEXT_LITERAL : '{' ('a'..'z' | 'A'..'Z' | '-' | '(' | ')' | '%' | ' ')+ '}' ; 49 | 50 | INTEGER_LITERAL : '-'? INTEGERCHAR+ ; 51 | 52 | NAME_LITERAL : ('a'..'z' | 'A'..'Z' | '-') ( 'a'..'z' | 'A'..'Z' | '0'..'9' | '=' | '-' | '+' | '_' | '.')* ; 53 | 54 | PERCENTAGE_LITERAL : '%' ('a'..'z' | '<' | '>')+ ; 55 | 56 | INTEGERCHAR : '0'..'9' ; 57 | 58 | COMMA : ',' ; 59 | 60 | OPEN_PAREN : '(' ; 61 | 62 | CLOSE_PAREN : ')' ; 63 | 64 | FUNCTIONCHAR : 'a'..'z' | 'A'..'Z' ; 65 | 66 | SPACE : ' ' ; 67 | -------------------------------------------------------------------------------- /parsers/TableGen.g4: -------------------------------------------------------------------------------- 1 | grammar TableGen; 2 | 3 | options 4 | { 5 | language = Python3; 6 | } 7 | 8 | expression : (ws | statementExpression)* EOF ; 9 | 10 | statementExpression : switchDefinition ; 11 | 12 | switchDefinition : 13 | 'def' (ws definitionName)? ws? 14 | ':' 15 | diagnosticProperties 16 | ';' ; 17 | 18 | diagnosticProperties : 19 | ws? classDefinition ws? (',' ws? classDefinition ws?)* 20 | ; 21 | 22 | definitionName : switchClass ; 23 | 24 | classDefinition : 25 | classDefinitionName ws? 26 | '<' ws? switchName ws? 27 | (',' ws? identifierList)? 28 | ws? '>' ; 29 | 30 | classDefinitionName : classname ; 31 | 32 | switchName : emptySwitchName | ('"' switchText '"') ; 33 | 34 | emptySwitchName : '""' ; 35 | 36 | switchClass : classname ; 37 | 38 | identifierList : 39 | '[' 40 | ws? identifierReference ws? 41 | (',' ws? identifierReference ws?)* 42 | ']' ; 43 | 44 | identifierReference : 45 | referencedName 46 | // TODO clang 3.1 uses this syntax inside identifier lists. 47 | // | classDefinition 48 | ; 49 | 50 | referencedName : 51 | switchClass 52 | ; 53 | 54 | classname : IDENTIFIERTEXT ; 55 | 56 | ws : (COMMENT | WHITESPACE)+ ; 57 | 58 | IDENTIFIERTEXT : ('a'..'z' | 'A'..'Z' | '0'..'9')+; 59 | 60 | WHITESPACE : (' '|'\t'|'\n')+; 61 | 62 | START_COMMENT : '//' ; 63 | COMMENT_CHARS : ~[\r\n] ; 64 | END_COMMENT : '\n' ; 65 | 66 | COMMENT : START_COMMENT COMMENT_CHARS* END_COMMENT ; 67 | 68 | WHITESPACE_COMMENT : (WHITESPACE)+ ; 69 | 70 | switchText : (~'"')+ ; 71 | -------------------------------------------------------------------------------- /parsers/build.ninja: -------------------------------------------------------------------------------- 1 | rule antlr 2 | command = antlr4 $in 3 | 4 | rule doctest 5 | command = python3 -mdoctest $in 6 | 7 | build GccOptionsLexer.py GccOptionsLexer.tokens GccOptionsListener.py GccOptionsParser.py GccOptions.tokens: antlr GccOptions.g4 | requirements.txt 8 | 9 | build TableGenLexer.py TableGenLexer.tokens TableGenListener.py TableGenParser.py TableGen.tokens: antlr TableGen.g4 | requirements.txt 10 | 11 | build all: phony GccOptionsLexer.py GccOptionsLexer.tokens GccOptionsListener.py GccOptionsParser.py GccOptions.tokens TableGenLexer.py TableGenLexer.tokens TableGenListener.py TableGenParser.py TableGen.tokens 12 | 13 | build test-gcc: doctest parse-gcc-warning-options.py | all 14 | 15 | build test: phony test-gcc 16 | 17 | default all 18 | -------------------------------------------------------------------------------- /parsers/common.py: -------------------------------------------------------------------------------- 1 | def add_common_parser_options(parser): 2 | group = parser.add_mutually_exclusive_group() 3 | group.add_argument("--top-level", action='store_true', help="""\ 4 | Show only top level switches. These filter out all switches that are enabled 5 | by some other switch and that way remove duplicate instances from the output. 6 | """) 7 | group.add_argument("--unique", action='store_true', help="""\ 8 | Show only unique switches.""") 9 | return parser 10 | -------------------------------------------------------------------------------- /parsers/create-diff.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eu 4 | 5 | diff -Naur "$1" "$2" | egrep "^[-+]-" | grep -v -- --- 6 | -------------------------------------------------------------------------------- /parsers/parse-clang-diagnostic-groups.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import antlr4 4 | import argparse 5 | import common 6 | import sys 7 | 8 | import TableGenLexer 9 | import TableGenListener 10 | import TableGenParser 11 | 12 | 13 | class ClangDiagnosticGroupsListener(TableGenListener.TableGenListener): 14 | def __init__(self): 15 | self.currentDefinitionName = None 16 | self.currentSwitchName = None 17 | self.currentClassDefinitionName = None 18 | self.currentReferences = None 19 | self.switchClassesReferences = {} 20 | self.switchNames = {} 21 | self.switchClasses = {} 22 | self.parentClasses = {} 23 | self.parentSwitches = {} 24 | 25 | def enterEmptySwitchName(self, ctx): 26 | if self.currentClassDefinitionName == "DiagGroup": 27 | self.currentSwitchName = "" 28 | 29 | def enterSwitchText(self, ctx): 30 | if self.currentClassDefinitionName == "DiagGroup": 31 | self.currentSwitchName = ctx.getText() 32 | 33 | def enterDefinitionName(self, ctx): 34 | self.currentDefinitionName = ctx.getText() 35 | 36 | def exitSwitchDefinition(self, ctx): 37 | self.currentDefinitionName = None 38 | 39 | def exitClassDefinition(self, ctx): 40 | if self.currentClassDefinitionName == "DiagGroup": 41 | if self.currentSwitchName is not None: 42 | self.switchNames[self.currentSwitchName] = ( 43 | self.currentDefinitionName) 44 | self.switchClassesReferences[self.currentSwitchName] = ( 45 | self.currentReferences) 46 | for reference in self.currentReferences: 47 | parents = self.parentClasses.get(reference, []) 48 | parents.append(self.currentSwitchName) 49 | self.parentSwitches[reference] = parents 50 | if self.currentDefinitionName: 51 | self.switchClasses[self.currentDefinitionName] = ( 52 | self.currentSwitchName) 53 | for reference in self.currentReferences: 54 | parents = self.parentClasses.get(reference, []) 55 | parents.append(self.currentDefinitionName) 56 | self.parentClasses[reference] = parents 57 | self.currentSwitchName = None 58 | self.currentClassDefinitionName = None 59 | self.currentReferences = None 60 | 61 | def enterClassDefinitionName(self, ctx): 62 | self.currentClassDefinitionName = ctx.getText() 63 | if self.currentClassDefinitionName == "DiagGroup": 64 | self.currentReferences = [] 65 | 66 | def enterIdentifierReference(self, ctx): 67 | self.currentReferences.append(ctx.getText()) 68 | 69 | 70 | def is_dummy_switch(diagnostics, switch_name): 71 | """Determines if a switch does nothing 72 | 73 | Dummy switch is such switch that has no children and does not 74 | belong to any class. It should therefore do nothing.""" 75 | 76 | class_name = diagnostics.switchNames[switch_name] 77 | has_class = class_name is not None 78 | references = diagnostics.switchClassesReferences.get(switch_name, []) 79 | has_reference = len(references) > 0 80 | return not (has_class or has_reference) 81 | 82 | 83 | def create_dummy_text(diagnostics, switch_name): 84 | if is_dummy_switch(diagnostics, switch_name): 85 | return " # DUMMY switch" 86 | return "" 87 | 88 | 89 | def print_references(diagnostics, switch_name, level): 90 | references = diagnostics.switchClassesReferences.get(switch_name, []) 91 | reference_switches = [] 92 | for reference_class_name in references: 93 | reference_switch_name = diagnostics.switchClasses[reference_class_name] 94 | reference_switches.append(reference_switch_name) 95 | for reference_switch_name in sorted( 96 | reference_switches, key=lambda x: x.lower()): 97 | dummy_string = create_dummy_text(diagnostics, reference_switch_name) 98 | print("# %s-W%s%s" % ( 99 | " " * level, reference_switch_name, dummy_string)) 100 | print_references(diagnostics, reference_switch_name, level + 1) 101 | 102 | 103 | def is_root_class(diagnostics, switch_name): 104 | # Root class is something that has parents in neither switches nor classes: 105 | class_name = diagnostics.switchNames[switch_name] 106 | has_parent_switch = class_name in diagnostics.parentSwitches 107 | has_parent_class = class_name in diagnostics.parentClasses 108 | return not has_parent_switch and not has_parent_class 109 | 110 | 111 | def main(argv): 112 | parser = argparse.ArgumentParser( 113 | description="Clang diagnostics group parser") 114 | common.add_common_parser_options(parser) 115 | parser.add_argument("groups_file", metavar="groups-file", help="""\ 116 | The path of clang diagnostic groups file. 117 | """) 118 | args = parser.parse_args(argv[1:]) 119 | 120 | string_input = antlr4.FileStream(args.groups_file) 121 | lexer = TableGenLexer.TableGenLexer(string_input) 122 | stream = antlr4.CommonTokenStream(lexer) 123 | parser = TableGenParser.TableGenParser(stream) 124 | tree = parser.expression() 125 | 126 | diagnostics = ClangDiagnosticGroupsListener() 127 | walker = antlr4.ParseTreeWalker() 128 | walker.walk(diagnostics, tree) 129 | 130 | for name in sorted( 131 | diagnostics.switchNames.keys(), key=lambda x: x.lower()): 132 | if args.top_level and not is_root_class(diagnostics, name): 133 | continue 134 | dummy_string = create_dummy_text(diagnostics, name) 135 | print("-W%s%s" % (name, dummy_string)) 136 | if args.unique: 137 | continue 138 | print_references(diagnostics, name, 1) 139 | 140 | 141 | if __name__ == "__main__": 142 | main(sys.argv) 143 | -------------------------------------------------------------------------------- /parsers/process-clang-git.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -euo pipefail 4 | 5 | DIR=$(dirname "$(readlink -f "$0")") 6 | 7 | function parse_clang_info() 8 | { 9 | local version=$1 10 | local target_dir=$2 11 | shift 2 12 | local input_files=("$@") 13 | "$DIR"/parse-clang-diagnostic-groups.py "${input_files[@]}" \ 14 | > "$target_dir"/warnings-clang-"$version".txt 15 | "$DIR"/parse-clang-diagnostic-groups.py --unique "${input_files[@]}" \ 16 | > "$target_dir"/warnings-clang-unique-"$version".txt 17 | "$DIR"/parse-clang-diagnostic-groups.py --top-level "${input_files[@]}" \ 18 | > "$target_dir"/warnings-clang-top-level-"$version".txt 19 | } 20 | 21 | GIT_DIR=$1 22 | 23 | target_dir=$DIR/../clang 24 | 25 | git -C "$GIT_DIR" checkout origin/release_32 26 | parse_clang_info 3.2 "$target_dir" "$GIT_DIR"/include/clang/Basic/DiagnosticGroups.td 27 | 28 | git -C "$GIT_DIR" checkout origin/release_33 29 | parse_clang_info 3.3 "$target_dir" "$GIT_DIR"/include/clang/Basic/DiagnosticGroups.td 30 | 31 | git -C "$GIT_DIR" checkout origin/release_34 32 | parse_clang_info 3.4 "$target_dir" "$GIT_DIR"/include/clang/Basic/DiagnosticGroups.td 33 | 34 | git -C "$GIT_DIR" checkout origin/release_35 35 | parse_clang_info 3.5 "$target_dir" "$GIT_DIR"/include/clang/Basic/DiagnosticGroups.td 36 | 37 | git -C "$GIT_DIR" checkout origin/release_36 38 | parse_clang_info 3.6 "$target_dir" "$GIT_DIR"/include/clang/Basic/DiagnosticGroups.td 39 | 40 | git -C "$GIT_DIR" checkout origin/release_37 41 | parse_clang_info 3.7 "$target_dir" "$GIT_DIR"/include/clang/Basic/DiagnosticGroups.td 42 | 43 | git -C "$GIT_DIR" checkout origin/release_38 44 | parse_clang_info 3.8 "$target_dir" "$GIT_DIR"/include/clang/Basic/DiagnosticGroups.td 45 | 46 | git -C "$GIT_DIR" checkout origin/release_39 47 | parse_clang_info 3.9 "$target_dir" "$GIT_DIR"/include/clang/Basic/DiagnosticGroups.td 48 | 49 | git -C "$GIT_DIR" checkout origin/release_40 50 | parse_clang_info 4 "$target_dir" "$GIT_DIR"/include/clang/Basic/DiagnosticGroups.td 51 | 52 | git -C "$GIT_DIR" checkout origin/release_50 53 | parse_clang_info 5 "$target_dir" "$GIT_DIR"/include/clang/Basic/DiagnosticGroups.td 54 | 55 | git -C "$GIT_DIR" checkout origin/release_60 56 | parse_clang_info 6 "$target_dir" "$GIT_DIR"/include/clang/Basic/DiagnosticGroups.td 57 | 58 | git -C "$GIT_DIR" checkout origin/release_70 59 | parse_clang_info 7 "$target_dir" "$GIT_DIR"/include/clang/Basic/DiagnosticGroups.td 60 | 61 | git -C "$GIT_DIR" checkout origin/release_80 62 | parse_clang_info 8 "$target_dir" "$GIT_DIR"/include/clang/Basic/DiagnosticGroups.td 63 | 64 | versions=( 65 | 3.2 66 | 3.3 67 | 3.4 68 | 3.5 69 | 3.6 70 | 3.7 71 | 3.8 72 | 3.9 73 | 4 74 | 5 75 | 6 76 | 7 77 | 8 78 | ) 79 | 80 | seq 2 "${#versions[@]}" | while read -r current_version in ; do 81 | current=${versions[$(( current_version - 2 ))]} 82 | next=${versions[$(( current_version - 1 ))]} 83 | "$DIR"/create-diff.sh \ 84 | "$target_dir"/warnings-clang-unique-"$current".txt \ 85 | "$target_dir"/warnings-clang-unique-"$next".txt \ 86 | > "$target_dir"/warnings-clang-diff-"$current-$next".txt 87 | done 88 | -------------------------------------------------------------------------------- /parsers/process-gcc-git.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -euo pipefail 4 | 5 | DIR=$(dirname "$(readlink -f "$0")") 6 | 7 | function parse_gcc_info() 8 | { 9 | local version=$1 10 | local target_dir=$2 11 | shift 2 12 | local input_files=("$@") 13 | "$DIR"/parse-gcc-warning-options.py "${input_files[@]}" \ 14 | > "$target_dir"/warnings-gcc-"$version".txt 15 | "$DIR"/parse-gcc-warning-options.py --unique "${input_files[@]}" \ 16 | > "$target_dir"/warnings-gcc-unique-"$version".txt 17 | "$DIR"/parse-gcc-warning-options.py --top-level "${input_files[@]}" \ 18 | > "$target_dir"/warnings-gcc-top-level-"$version".txt 19 | } 20 | 21 | GIT_DIR=$1 22 | 23 | target_dir=$DIR/../gcc 24 | 25 | git -C "$GIT_DIR" checkout gcc-3_4_6-release 26 | parse_gcc_info 3.4 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c.opt} 27 | 28 | git -C "$GIT_DIR" checkout gcc-4_0_4-release 29 | parse_gcc_info 4.0 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c.opt} 30 | 31 | git -C "$GIT_DIR" checkout gcc-4_1_2-release 32 | parse_gcc_info 4.1 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c.opt} 33 | 34 | git -C "$GIT_DIR" checkout gcc-4_2_4-release 35 | parse_gcc_info 4.2 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c.opt} 36 | 37 | git -C "$GIT_DIR" checkout gcc-4_3_6-release 38 | parse_gcc_info 4.3 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c.opt} 39 | 40 | git -C "$GIT_DIR" checkout gcc-4_4_7-release 41 | parse_gcc_info 4.4 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c.opt} 42 | 43 | git -C "$GIT_DIR" checkout gcc-4_5_4-release 44 | parse_gcc_info 4.5 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c.opt} 45 | 46 | git -C "$GIT_DIR" checkout gcc-4_6_4-release 47 | parse_gcc_info 4.6 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c-family/c.opt} 48 | 49 | git -C "$GIT_DIR" checkout gcc-4_7_4-release 50 | parse_gcc_info 4.7 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c-family/c.opt} 51 | 52 | git -C "$GIT_DIR" checkout gcc-4_8_5-release 53 | parse_gcc_info 4.8 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c-family/c.opt} 54 | 55 | git -C "$GIT_DIR" checkout gcc-4_9_4-release 56 | parse_gcc_info 4.9 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c-family/c.opt} 57 | 58 | git -C "$GIT_DIR" checkout gcc-5_4_0-release 59 | parse_gcc_info 5 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c-family/c.opt} 60 | 61 | git -C "$GIT_DIR" checkout gcc-6_4_0-release 62 | parse_gcc_info 6 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c-family/c.opt} 63 | 64 | git -C "$GIT_DIR" checkout gcc-7_3_0-release 65 | parse_gcc_info 7 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c-family/c.opt} 66 | 67 | git -C "$GIT_DIR" checkout gcc-8_3_0-release 68 | parse_gcc_info 8 "$target_dir" "$GIT_DIR"/gcc/{common.opt,c-family/c.opt} 69 | 70 | versions=( 71 | 3.4 72 | 4.0 73 | 4.1 74 | 4.2 75 | 4.3 76 | 4.4 77 | 4.5 78 | 4.6 79 | 4.7 80 | 4.8 81 | 4.9 82 | 5 83 | 6 84 | 7 85 | 8 86 | ) 87 | 88 | seq 2 "${#versions[@]}" | while read -r current_version in ; do 89 | current=${versions[$(( current_version - 2 ))]} 90 | next=${versions[$(( current_version - 1 ))]} 91 | "$DIR"/create-diff.sh \ 92 | "$target_dir"/warnings-gcc-unique-"$current".txt \ 93 | "$target_dir"/warnings-gcc-unique-"$next".txt \ 94 | > "$target_dir"/warnings-gcc-diff-"$current-$next".txt 95 | done 96 | -------------------------------------------------------------------------------- /parsers/requirements.txt: -------------------------------------------------------------------------------- 1 | antlr4-python3-runtime==4.7.2 2 | --------------------------------------------------------------------------------