Lines Matching refs:warning
8 …a compiler options or system configurations, including language options, warning options, security…
68 …y complied with. If the syntax does not comply with the ISO standards, a warning is generated. The…
96 **[Description]** **-Wall** is a set of useful warning options recognized by the GNU Compiler Colle…
102 **[Description]** **-Wextra** is a set of useful warning options except **-Wall**, including **-Wem…
110 **[Description]** **-Weffc++** is a set of warning options corresponding to Scott Meyers' Effective…
120 ##### G.C&C++.WARN.05 DO NOT enable -Wno-XXXX to suppress all warning options contained in -Wall.
126 …OT enable -Wno-error= XXXX to degrade a specific warning that has been upgraded to an error to a w…
130 …r=XXXX** escalates a warning to an error. **-Wno-error= XXXX** downgrades a warning that has been …
132 ##### G.C&C++.WARN.07 DO NOT enable -Wno-XXXX to suppress the warning options enabled by the compil…
136 **[Description]** The warning options enabled by the compiler by default are useful options recogni…
138 …mponent, **-Wno-write-strings** is used to suppress the **-Wwrite-strings** warning for 7749 times.
140 …you can use **-Wno-builtin-macro-redefined** to suppress the **-Wbuiltin-macro-redefined** warning.
150 If **-Werror** is enabled, all warnings are escalated as errors. Once a warning is generated, the c…
152 If **-Werror=XXXX** is enabled, a specific type of warning is escalated as errors. This helps clear…
156 ##### G.C&C++.WARN.09 Use unified warning options in a build project.
160 **[Description]** Use unified compilation warning options to ensure the same code quality of each p…
168 **[Description]** With the **-Wtrampolines** option enabled, a warning is generated when a nested f…
195 warning: trampoline generated for nested function 'fun' [-Wtrampolines]
205 1. With the **-Wformat** option enabled, a warning is generated when the parameter type or format o…
207 2. With the **-Wformat-nonliteral** option enabled, a warning is generated when the format string i…
234 warning: function declaration isn't a prototype [-Wstrict-prototypes] int func(param){
264 warning:macro "_DATE_" might prevent reproducible builds [-Wdate-time] warning:macro "_TIME_" might…
273 …, the two numbers are equal. Otherwise, they are not equal. Note that no warning is generated when…
297 …e-precision floating point numbers are compared, the compiler generates "warning:comparing floatin…
326 …the **switch** statement does not have the default branch, a compilation warning is generated unde…
351 warning: switch missing default case [-Wswitch-default] switch (Color)
360 **[Description]** With the **-Wshadow** option enabled, a warning is generated when local variables…
379 warning: declaration of 'num' shadows a global declaration [-Wshadow] int num = a + b;
386 …ction may exceed the number of bytes specified by **len**, a compilation warning is generated. You…
403 warning: stack usage is 4012 bytes [-Wstack-usage=] void foo(void) {
410 …function exceeds the number of bytes specified by **len**, a compilation warning is generated. You…
427 warning: the frame size of 4000 bytes is larger than 1000 bytes [-Wframe-larger-than=]
434 …ocal-addr** warning is generated by default during compilation. Do not enable the **-Wno-return-lo…
451 warning: function returns address of local variable [-Wreturn-local-addr] return \&a;
460 **[Description]** If implicit conversion in the code causes value changes, a compilation warning is…
462 …r type to a smaller type. If explicit conversion is used in the code, no warning is generated unde…
479 warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion] return num;
508 warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] char\* q = (char\*)…
515 …warning is generated when the number of bytes used by the target type for address alignment increa…
523 **[Description]** If the length of an array is a variable, a compilation warning is generated under…
539 warning: ISO C90 forbids variable length array 'arr' [-Wvla] int arr[len];
579 warning: unused variable 'a' [-Wunused-variable] int a;
588 **[Description]** When an undefined identifier appears in the \#if statement, a warning is generate…
604 warning: "DEFINE_A_VALUE" is not defined, evaluates to 0 [-Wundef] \#if DEFINE_A_VALUE
635 warning: 'class Base' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dt…
642 … occur. Do not enable the **-Wno-delete-non-virtual-dtor** option to suppress this type of warning.
666 warning: deleting object of polymorphic class type 'Base' which has non-virtual destructor might ca…
673 …e base class, causing that function to be hidden. If this is the case, a warning is generated when…
692 warning: by 'void Sub::f(int)' [-Woverloaded-virtual] void f(int);
1125 **[Description]** With the **-fno-common** option enabled, a warning is generated when an uninitial…
1223 …also causes redundancy. For example, **-Wall** contains more than 40 sub-warning options, and **-O…
1254 …ollowing sequence: optimization levels (such as -O2) + general options + warning options + languag…
1304 …warning is displayed during compilation when the code is not recommended by the Java version. For …