iOS消除对应的警告!

04-协议基础03:USB 2.0信号与电气特性 USB 2.0使用两根差分信号线D+/D-进行数据传输,支持低速(1.5Mbps)、全速(12Mbps)和高速(480Mbps)三种速率。USB总线为主从模式,所有事务由Host发起。端电阻值作用HostRpd(D+)15KΩ±5%下拉,默认低电平HostRpd(D-)15KΩ±5%下拉,默认低电平全速设备Rpu(D+)1.5KΩ±5%上拉到3.3V,标识全速低速设备Rpu(D-)1.5KΩ±5%上拉到3.3V,标识低速USB 2.0硬件要点。 阅读详情
  1. 在iOS开发过程中, 我们可能会碰到一些系统方法弃用, weak、循环引用、不能执行之类的警告。 有代码洁癖的孩子们很想消除他们, 今天就让我们来一次Fuck 警告!!

    • 首先学会基本的语句
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

  这里写出现警告的代码

#pragma clang diagnostic pop
  • 这样就消除了方法弃用的警告!

  • 同理, 大家可以在下边搜索到对应的警告, 这样 就可以把前边的字串填入上边的ignored的后边, 然后阔住你的代码, 就OK了

源网址

Semantic Warnings
Warning    Message
-WCFString-literal    input conversion stopped due to an input byte that does not belong to the input codeset UTF-8
-WNSObject-attribute    __attribute ((NSObject)) may be put on a typedef only, attribute is ignored
-Wabstract-vbase-init    initializer for virtual base class %0 of abstract class %1 will never be used
-Waddress-of-array-temporary    pointer is initialized by a temporary array, which will be destroyed at the end of the full-expression
-Warc-maybe-repeated-use-of-weak    "weak %select{variable|property|implicit property|instance variable}0 %1 may be accessed multiple times in this %select{function|method|block|lambda}2 and may be unpredictably set to nil assign to a strong variable to keep the object alive
-Warc-non-pod-memaccess    %select{destination for|source of}0 this %1 call is a pointer to ownership-qualified type %2
-Warc-performSelector-leaks    performSelector may cause a leak because its selector is unknown
-Warc-repeated-use-of-weak    "weak %select{variable|property|implicit property|instance variable}0 %1 is accessed multiple times in this %select{function|method|block|lambda}2 but may be unpredictably set to nil assign to a strong variable to keep the object alive
-Warc-retain-cycles    capturing %0 strongly in this block is likely to lead to a retain cycle
-Warc-unsafe-retained-assign    assigning retained object to unsafe property object will be released after assignment
-Warc-unsafe-retained-assign    assigning %select{array literal|dictionary literal|numeric literal|boxed expression|should not happen|block literal}0 to a weak %select{property|variable}1 object will be released after assignment
-Warc-unsafe-retained-assign    assigning retained object to %select{weak|unsafe_unretained}0 %select{property|variable}1 object will be released after assignment
-Warray-bounds    array index %0 is past the end of the array (which contains %1 element%s2)
-Warray-bounds    array index %0 is before the beginning of the array
-Warray-bounds    'static' has no effect on zero-length arrays
-Warray-bounds    array argument is too small contains %0 elements, callee requires at least %1
-Warray-bounds-pointer-arithmetic    the pointer incremented by %0 refers past the end of the array (that contains %1 element%s2)
-Warray-bounds-pointer-arithmetic    the pointer decremented by %0 refers before the beginning of the array
-Wassign-enum    integer constant not in range of enumerated type %0
-Watomic-property-with-user-defined-accessor    writable atomic property %0 cannot pair a synthesized %select{getter|setter}1 with a user defined %select{getter|setter}2
-Wattributes    unknown attribute %0 ignored
-Wauto-var-id    'auto' deduced as 'id' in declaration of %0
-Wavailability    unknown platform %0 in availability macro
-Wavailability    overriding method %select{introduced after|deprecated before|obsoleted before}0 overridden method on %1 (%2 vs. %3)
-Wavailability    availability does not match previous declaration
-Wavailability    overriding method cannot be unavailable on %0 when its overridden method is available
-Wavailability    feature cannot be %select{introduced|deprecated|obsoleted}0 in %1 version %2 before it was %select{introduced|deprecated|obsoleted}3 in version %4 attribute ignored
-Wbad-function-cast    cast from function call of type %0 to non-matching type %1
-Wbitfield-constant-conversion    implicit truncation from %2 to bitfield changes value from %0 to %1
-Wbitwise-op-parentheses    '&' within '|'
-Wbool-conversion    "initialization of pointer of type %0 to null from a constant boolean " "expression
-Wbridge-cast    %0 cannot bridge to %1
-Wbridge-cast    %0 bridges to %1, not %2
-Wbuiltin-requires-header    declaration of built-in function '%0' requires inclusion of the header stdio.h
-Wbuiltin-requires-header    declaration of built-in function '%0' requires inclusion of the header setjmp.h
-Wbuiltin-requires-header    declaration of built-in function '%0' requires inclusion of the header ucontext.h
-Wc++-compat    %select{|empty }0%select{struct|union}1 has size 0 in C, %select{size 1|non-zero size}2 in C++
-Wc++11-compat    explicit instantiation cannot be 'inline'
-Wc++11-compat    explicit instantiation of %0 must occur at global scope
-Wc++11-compat    explicit instantiation of %0 not in a namespace enclosing %1
-Wc++11-compat    explicit instantiation of %q0 must occur in namespace %1
-Wc++11-narrowing    constant expression evaluates to %0 which cannot be narrowed to type %1 in C++11
-Wc++11-narrowing    type %0 cannot be narrowed to %1 in initializer list in C++11
-Wc++11-narrowing    non-constant-expression cannot be narrowed from type %0 to %1 in initializer list in C++11
-Wc++98-c++11-compat    type definition in a constexpr %select{function|constructor}0 is incompatible with C++ standards before C++1y
-Wc++98-c++11-compat    use of this statement in a constexpr %select{function|constructor}0 is incompatible with C++ standards before C++1y
-Wc++98-c++11-compat    init-captures.def warn_cxx11_compat_init_capture : Warning "initialized lambda captures are incompatible with C++ standards " "before C++1y
-Wc++98-c++11-compat    variable declaration in a constexpr %select{function|constructor}0 is incompatible with C++ standards before C++1y
-Wc++98-c++11-compat    constexpr function with no return statements is incompatible with C++ standards before C++1y
-Wc++98-c++11-compat    multiple return statements in constexpr function is incompatible with C++ standards before C++1y
-Wc++98-c++11-compat    variable templates are incompatible with C++ standards before C++1y
-Wc++98-compat    substitution failure due to access control is incompatible with C++98
-Wc++98-compat    %select{anonymous struct|union}0 member %1 with a non-trivial %select{constructor|copy constructor|move constructor|copy assignment operator|move assignment operator|destructor}2 is incompatible with C++98
-Wc++98-compat    enumeration type in nested name specifier is incompatible with C++98
-Wc++98-compat    static data member %0 in union is incompatible with C++98
-Wc++98-compat    default template arguments for a function template are incompatible with C++98
-Wc++98-compat    scalar initialized from empty initializer list is incompatible with C++98
-Wc++98-compat    befriending %1 without '%select{struct|interface|union|class|enum}0' keyword is incompatible with C++98
-Wc++98-compat    use of null pointer as non-type template argument is incompatible with C++98
-Wc++98-compat    friend declaration naming a member of the declaring class is incompatible with C++98
-Wc++98-compat    non-class friend type %0 is incompatible with C++98
-Wc++98-compat    befriending enumeration type %0 is incompatible with C++98
-Wc++98-compat    use of non-static data member %0 in an unevaluated context is incompatible with C++98
-Wc++98-compat    friend function %0 would be implicitly redefined in C++98
-Wc++98-compat    %select{class template|class template partial|variable template|variable template partial|function template|member function|static data member|member class|member enumeration}0 specialization of %1 outside namespace %2 is incompatible with C++98
-Wc++98-compat    reference initialized from initializer list is incompatible with C++98
-Wc++98-compat    redundant parentheses surrounding address non-type template argument are incompatible with C++98
-Wc++98-compat    initialization of initializer_list object is incompatible with C++98
-Wc++98-compat    use of 'template' keyword outside of a template is incompatible with C++98
-Wc++98-compat    non-type template argument referring to %select{function|object}0 %1 with internal linkage is incompatible with C++98
-Wc++98-compat    use of 'typename' outside of a template is incompatible with C++98
-Wc++98-compat    passing object of trivial but non-POD type %0 through variadic %select{function|block|method|constructor}1 is incompatible with C++98
-Wc++98-compat    goto would jump into protected scope in C++98
-Wc++98-compat    constructor call from initializer list is incompatible with C++98
-Wc++98-compat    'auto' type specifier is incompatible with C++98
-Wc++98-compat    delegating constructors are incompatible with C++98
-Wc++98-compat    'constexpr' specifier is incompatible with C++98
-Wc++98-compat    inheriting constructors are incompatible with C++98
-Wc++98-compat    explicit conversion functions are incompatible with C++98
-Wc++98-compat    switch case would be in a protected scope in C++98
-Wc++98-compat    '%0' type specifier is incompatible with C++98
-Wc++98-compat    indirect goto might cross protected scopes in C++98
-Wc++98-compat-pedantic    cast between pointer-to-function and pointer-to-object is incompatible with C++98
-Wc++98-compat-pedantic    implicit conversion from array size expression of type %0 to %select{integral|enumeration}1 type %2 is incompatible with C++98
-Wcast-align    cast from %0 to %1 increases required alignment from %2 to %3
-Wcast-of-sel-type    cast of type %0 to %1 is deprecated use sel_getName instead
-Wchar-subscripts    array subscript is of type 'char'
-Wconditional-uninitialized    variable %0 may be uninitialized when %select{used here|captured by block}1
-Wconstant-logical-operand    use of logical '%0' with constant operand
-Wconstexpr-not-const    'constexpr' non-static member function will not be implicitly 'const' in C++1y add 'const' to avoid a change in behavior
-Wconsumed    state of variable '%0' must match at the entry and exit of loop
-Wconsumed    parameter '%0' not in expected state when the function returns: expected '%1', observed '%2'
-Wconsumed    argument not in expected state expected '%0', observed '%1'
-Wconsumed    invalid invocation of method '%0' on a temporary object while it is in the '%1' state
-Wconsumed    return state set for an unconsumable type '%0'
-Wconsumed    consumed analysis attribute is attached to member of class '%0' which isn't marked as consumable
-Wconsumed    invalid invocation of method '%0' on object '%1' while it is in the '%2' state
-Wconsumed    return value not in expected state expected '%0', observed '%1'
-Wconversion    implicit conversion discards imaginary component: %0 to %1
-Wconversion    non-type template argument with value '%0' converted to '%1' for unsigned template parameter of type %2
-Wconversion    implicit conversion loses floating-point precision: %0 to %1
-Wconversion    implicit conversion loses integer precision: %0 to %1
-Wconversion    non-type template argument value '%0' truncated to '%1' for template parameter of type %2
-Wconversion    implicit conversion turns vector to scalar: %0 to %1
-Wconversion    implicit conversion turns floating-point number into integer: %0 to %1
-Wcovered-switch-default    default label in switch which covers all enumeration values
-Wcustom-atomic-properties    atomic by default property %0 has a user defined %select{getter|setter}1 (property should be marked 'atomic' if this is intended)
-Wdangling-field    initializing pointer member %0 with the stack address of parameter %1
-Wdangling-field    binding reference %select{|subobject of }1member %0 to a temporary value
-Wdangling-field    binding reference member %0 to stack allocated parameter %1
-Wdangling-initializer-list    array backing the initializer list will be destroyed at the end of %select{the full-expression|the constructor}0
-Wdelete-incomplete    deleting pointer to incomplete type %0 may cause undefined behavior
-Wdelete-non-virtual-dtor    delete called on %0 that is abstract but has non-virtual destructor
-Wdelete-non-virtual-dtor    delete called on %0 that has virtual functions but non-virtual destructor
-Wdeprecated    access declarations are deprecated use using declarations instead
-Wdeprecated    definition of implicit copy %select{constructor|assignment operator}1 for %0 is deprecated because it has a user-declared %select{copy %select{assignment operator|constructor}1|destructor}2
-Wdeprecated    dynamic exception specifications are deprecated
-Wdeprecated-increment-bool    incrementing expression of type bool is deprecated
-Wdeprecated-objc-isa-usage    assignment to Objective-C's isa is deprecated in favor of object_setClass()
-Wdeprecated-objc-isa-usage    direct access to Objective-C's isa is deprecated in favor of object_getClass()
-Wdeprecated-objc-pointer-introspection    bitmasking for introspection of Objective-C object pointers is strongly discouraged
-Wdeprecated-objc-pointer-introspection-performSelector    warn_objc_pointer_masking.Text
-Wdeprecated-writable-strings    dummy warning to enable -fconst-strings
-Wdirect-ivar-access    instance variable %0 is being directly accessed
-Wdistributed-object-modifiers    conflicting distributed object modifiers on return type in implementation of %0
-Wdistributed-object-modifiers    conflicting distributed object modifiers on parameter type in implementation of %0
-Wdivision-by-zero    division by zero is undefined
-Wdivision-by-zero    remainder by zero is undefined
-Wdocumentation    parameter '%0' not found in the function declaration
-Wdocumentation    not a Doxygen trailing comment
-Wduplicate-enum    element %0 has been implicitly assigned %1 which another element has been assigned
-Wduplicate-method-match    multiple declarations of method %0 found and ignored
-Wdynamic-class-memaccess    %select{destination for|source of|first operand of|second operand of}0 this %1 call is a pointer to dynamic class %2 vtable pointer will be %select{overwritten|copied|moved|compared}3
-Wempty-body    switch statement has empty body
-Wempty-body    for loop has empty body
-Wempty-body    if statement has empty body
-Wempty-body    range-based for loop has empty body
-Wempty-body    while loop has empty body
-Wenum-compare    comparison of two values with different enumeration types%diff{ ($ and $)|}0,1
-Wenum-conversion    implicit conversion from enumeration type %0 to different enumeration type %1
-Wexit-time-destructors    declaration requires an exit-time destructor
-Wexplicit-ownership-type    method parameter of type %0 with no explicit ownership
-Wextern-c-compat    %select{|empty }0%select{struct|union}1 has size 0 in C, %select{size 1|non-zero size}2 in C++
-Wextern-initializer    'extern' variable has an initializer
-Wfloat-equal    comparing floating point with == or != is unsafe
-Wformat    "data argument position '%0' exceeds the number of data arguments (%1)
-Wformat    position arguments in format strings start counting at 1 (not 0)
-Wformat    invalid position specified for %select{field width|field precision}0
-Wformat    cannot mix positional and non-positional arguments in format string
-Wformat    values of type '%0' should not be used as format arguments add an explicit cast to %1 instead
-Wformat    format specifies type %0 but the argument has type %1
-Wformat    zero field width in scanf format string is unused
-Wformat    no closing ']' for '%%[' in scanf format string
-Wformat    format string should not be a wide string
-Wformat    format string contains '\\0' within the string body
-Wformat    '%select{*|.*}0' specified field %select{width|precision}0 is missing a matching 'int' argument
-Wformat    field %select{width|precision}0 should have type %1, but argument has type %2
-Wformat    %select{field width|precision}0 used with '%1' conversion specifier, resulting in undefined behavior
-Wformat    format string missing
-Wformat    incomplete format specifier
-Wformat    flag '%0' results in undefined behavior with '%1' conversion specifier
-Wformat    flag '%0' is ignored when flag '%1' is present
-Wformat    more '%%' conversions than data arguments
-Wformat    length modifier '%0' results in undefined behavior or no effect with '%1' conversion specifier
-Wformat-extra-args    data argument not used by format string
-Wformat-invalid-specifier    invalid conversion specifier '%0'
-Wformat-nonliteral    format string is not a string literal
-Wformat-security    format string is not a string literal (potentially insecure)
-Wformat-zero-length    format string is empty
-Wgcc-compat    GCC does not allow the 'cleanup' attribute argument to be anything other than a simple identifier
-Wglobal-constructors    declaration requires a global constructor
-Wglobal-constructors    declaration requires a global destructor
-Wgnu-conditional-omitted-operand    use of GNU ?: conditional expression extension, omitting middle operand
-Wheader-hygiene    using namespace directive in global context in header
-Widiomatic-parentheses    using the result of an assignment as a condition without parentheses
-Wignored-attributes    'malloc' attribute only applies to functions returning a pointer type
-Wignored-attributes    %0 attribute only applies to %select{functions|unions|variables and functions|functions and methods|parameters|functions, methods and blocks|functions, methods, and classes|functions, methods, and parameters|classes|variables|methods|variables, functions and labels|fields and global variables|structs|variables, functions and tag types|thread-local variables|variables and fields|variables, data members and tag types|types and namespaces|Objective-C interfaces}1
-Wignored-attributes    '%0' attribute cannot be specified on a definition
-Wignored-attributes    __weak attribute cannot be specified on an automatic variable when ARC is not enabled
-Wignored-attributes    Objective-C GC does not allow weak variables on the stack
-Wignored-attributes    __weak attribute cannot be specified on a field declaration
-Wignored-attributes    attribute %0 cannot be applied to %select{functions|Objective-C method}1 without return value
-Wignored-attributes    attribute declaration must precede definition
-Wignored-attributes    attribute %0 is ignored, place it after \"%select{class|struct|union|interface|enum}1\" to apply attribute to type declaration
-Wignored-attributes    __declspec attribute %0 is not supported
-Wignored-attributes    attribute %0 ignored, because it cannot be applied to a type
-Wignored-attributes    attribute %0 after definition is ignored
-Wignored-attributes    %0 attribute ignored
-Wignored-attributes    'sentinel' attribute only supported for variadic %select{functions|blocks}0
-Wignored-attributes    'sentinel' attribute requires named arguments
-Wignored-attributes    '%0' only applies to %select{function|pointer|Objective-C object or block pointer}1 types type here is %2
-Wignored-attributes    'nonnull' attribute applied to function with no pointer arguments
-Wignored-attributes    %0 attribute can only be applied to instance variables or properties
-Wignored-attributes    ibaction attribute can only be applied to Objective-C instance methods
-Wignored-attributes    %0 calling convention ignored on variadic function
-Wignored-attributes    %0 only applies to variables with static storage duration and functions
-Wignored-attributes    %0 attribute argument not supported: %1
-Wignored-attributes    #pramga ms_struct can not be used with dynamic classes or structures
-Wignored-attributes    transparent union definition must contain at least one field transparent_union attribute ignored
-Wignored-attributes    first field of a transparent union cannot have %select{floating point|vector}0 type %1 transparent_union attribute ignored
-Wignored-attributes    'gnu_inline' attribute requires function to be marked 'inline', attribute ignored
-Wignored-attributes    calling convention %0 ignored for this target
-Wignored-attributes    transparent_union attribute can only be applied to a union definition attribute ignored
-Wignored-attributes    %select{alignment|size}0 of field %1 (%2 bits) does not match the %select{alignment|size}0 of the first field in transparent union transparent_union attribute ignored
-Wignored-attributes    attribute %0 is already applied
-Wignored-attributes    %0 attribute ignored for field of type %1
-Wignored-attributes    %0 attribute ignored when parsing type
-Wignored-attributes    %0 attribute only applies to %select{functions|methods|properties}1 that return %select{an Objective-C object|a pointer|a non-retainable pointer}2
-Wignored-attributes    %0 attribute only applies to %select{Objective-C object|pointer}1 parameters
-Wignored-attributes    attribute %0 is already applied with different parameters
-Wignored-attributes    unknown visibility %0
-Wignored-qualifiers    "'%0' type qualifier%s1 on return type %plural{1:has|:have}1 no effect
-Wignored-qualifiers    ARC %select{unused|__unsafe_unretained|__strong|__weak|__autoreleasing}0 lifetime qualifier on return type is ignored
-Wimplicit-atomic-properties    property is assumed atomic by default
-Wimplicit-atomic-properties    property is assumed atomic when auto-synthesizing the property
-Wimplicit-fallthrough    fallthrough annotation in unreachable code
-Wimplicit-fallthrough    unannotated fall-through between switch labels
-Wimplicit-fallthrough    fallthrough annotation does not directly precede switch label
-Wimplicit-function-declaration    implicit declaration of function %0
-Wimplicit-function-declaration    use of unknown builtin %0
-Wimplicit-retain-self    "block implicitly retains 'self' explicitly mention 'self' to indicate this is intended behavior
-Wincompatible-library-redeclaration    incompatible redeclaration of library function %0
-Wincomplete-implementation    method definition for %0 not found
-Winherited-variadic-ctor    inheriting constructor does not inherit ellipsis
-Winitializer-overrides    subobject initialization overrides initialization of other fields within its enclosing subobject
-Winitializer-overrides    initializer overrides prior initialization of this subobject
-Wint-to-pointer-cast    cast to %1 from smaller integer type %0
-Wint-to-void-pointer-cast    cast to %1 from smaller integer type %0
-Winvalid-iboutlet    IBOutletCollection properties should be copy/strong and not assign
-Winvalid-iboutlet    %select{instance variable|property}2 with %0 attribute must be an object type (invalid %1)
-Winvalid-noreturn    function %0 declared 'noreturn' should not return
-Winvalid-noreturn    function declared 'noreturn' should not return
-Wlarge-by-value-copy    return value of %0 is a large (%1 bytes) pass-by-value object pass it by reference instead ?
-Wlarge-by-value-copy    %0 is a large (%1 bytes) pass-by-value argument pass it by reference instead ?
-Wliteral-conversion    implicit conversion from %0 to %1 changes value from %2 to %3
-Wliteral-range    magnitude of floating-point constant too large for type %0 maximum is %1
-Wliteral-range    magnitude of floating-point constant too small for type %0 minimum is %1
-Wlogical-not-parentheses    logical not is only applied to the left hand side of this comparison
-Wlogical-op-parentheses    '&&' within '||'
-Wloop-analysis    variable%select{s| %1|s %1 and %2|s %1, %2, and %3|s %1, %2, %3, and %4}0 used in loop condition not modified in loop body
-Wloop-analysis    variable %0 is %select{decremented|incremented}1 both in the loop header and in the loop body
-Wmethod-signatures    conflicting parameter types in implementation of %0: %1 vs %2
-Wmethod-signatures    conflicting return type in implementation of %0: %1 vs %2
-Wmicrosoft    extra qualification on member %0
-Wmismatched-method-attributes    attributes on method implementation and its declaration must match
-Wmismatched-parameter-types    conflicting parameter types in implementation of %0%diff{: $ vs $|}1,2
-Wmismatched-return-types    conflicting return type in implementation of %0%diff{: $ vs $|}1,2
-Wmissing-braces    suggest braces around initialization of subobject
-Wmissing-declarations    '%0' ignored on this declaration
-Wmissing-field-initializers    missing field '%0' initializer
-Wmissing-method-return-type    method has no return type specified defaults to 'id'
-Wmissing-noreturn    %select{function|method}0 %1 could be declared with attribute 'noreturn'
-Wmissing-noreturn    block could be declared with attribute 'noreturn'
-Wmissing-prototypes    no previous prototype for function %0
-Wmissing-variable-declarations    no previous extern declaration for non-static variable %0
-Wmultiple-move-vbase    defaulted move assignment operator of %0 will move assign virtual base class %1 multiple times
-Wnested-anon-types    anonymous types declared in an anonymous union/struct are an extension
-Wno-typedef-redefinition    Redefinition of typedef '%0' is a C11 feature
-Wnon-literal-null-conversion    "expression which evaluates to zero treated as a null pointer constant of " "type %0
-Wnon-pod-varargs    second argument to 'va_arg' is of ARC ownership-qualified type %0
-Wnon-pod-varargs    cannot pass %select{non-POD|non-trivial}0 object of type %1 to variadic %select{function|block|method|constructor}2 expected type from format string was %3
-Wnon-pod-varargs    second argument to 'va_arg' is of non-POD type %0
-Wnon-pod-varargs    cannot pass object of %select{non-POD|non-trivial}0 type %1 through variadic %select{function|block|method|constructor}2 call will abort at runtime
-Wnon-virtual-dtor    %0 has virtual functions but non-virtual destructor
-Wnonnull    null passed to a callee which requires a non-null argument
-Wnull-arithmetic    use of NULL in arithmetic operation
-Wnull-arithmetic    comparison between NULL and non-pointer %select{(%1 and NULL)|(NULL and %1)}0
-Wnull-dereference    indirection of non-volatile null pointer will be deleted, not trap
-Wobjc-autosynthesis-property-ivar-name-match    autosynthesized property %0 will use %select{|synthesized}1 instance variable %2, not existing instance variable %3
-Wobjc-forward-class-redefinition    redefinition of forward class %0 of a typedef name of an object type is ignored
-Wobjc-interface-ivars    declaration of instance variables in the interface is deprecated
-Wobjc-literal-compare    direct comparison of %select{an array literal|a dictionary literal|a numeric literal|a boxed expression|}0 has undefined behavior
-Wobjc-literal-missing-atsign    string literal must be prefixed by '@'
-Wobjc-method-access    instance method %objcinstance0 not found (return type defaults to 'id') did you mean %objcinstance2?
-Wobjc-method-access    class method %objcclass0 not found (return type defaults to 'id') did you mean %objcclass2?
-Wobjc-method-access    instance method %objcinstance0 not found (return type defaults to 'id')
-Wobjc-method-access    instance method %0 is being used on 'Class' which is not in the root class
-Wobjc-method-access    class method %objcclass0 not found (return type defaults to 'id')
-Wobjc-method-access    instance method %0 found instead of class method %1
-Wobjc-missing-property-synthesis    "auto property synthesis is synthesizing property not explicitly synthesized
-Wobjc-missing-super-calls    method possibly missing a [super %0] call
-Wobjc-noncopy-retain-block-property    "retain'ed block property does not copy the block " "- use copy attribute instead
-Wobjc-nonunified-exceptions    can not catch an exception thrown with @throw in C++ in the non-unified exception model
-Wobjc-property-implementation    property %0 requires method %1 to be defined - use @dynamic or provide a method implementation in this category
-Wobjc-property-implementation    property %0 requires method %1 to be defined - use @synthesize, @dynamic or provide a method implementation in this class implementation
-Wobjc-property-implicit-mismatch    "primary property declaration is implicitly strong while redeclaration in class extension is weak
-Wobjc-property-matches-cocoa-ownership-rule    property's synthesized getter follows Cocoa naming convention for returning 'owned' objects
-Wobjc-property-no-attribute    no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed
-Wobjc-property-no-attribute    default property attribute 'assign' not appropriate for non-GC object
-Wobjc-property-synthesis    auto property synthesis will not synthesize property '%0' because it is 'readwrite' but it will be synthesized 'readonly' via another property
-Wobjc-property-synthesis    "auto property synthesis will not synthesize property '%0' because it cannot share an ivar with another synthesized property
-Wobjc-protocol-method-implementation    category is implementing a method which will also be implemented by its primary class
-Wobjc-protocol-property-synthesis    auto property synthesis will not synthesize property declared in a protocol
-Wobjc-redundant-literal-use    using %0 with a literal is redundant
-Wobjc-root-class    class %0 defined without specifying a base class
-Wobjc-string-compare    direct comparison of a string literal has undefined behavior
-Wobjc-string-concatenation    concatenated NSString literal for an NSArray expression - possibly missing a comma
-Wover-aligned    type %0 requires %1 bytes of alignment and the default allocator only guarantees %2 bytes
-Woverloaded-shift-op-parentheses    overloaded operator %select{|}0 has lower precedence than comparison operator
-Woverloaded-virtual    %q0 hides overloaded virtual %select{function|functions}1
-Woverriding-method-mismatch    conflicting distributed object modifiers on parameter type in declaration of %0
-Woverriding-method-mismatch    conflicting parameter types in declaration of %0: %1 vs %2
-Woverriding-method-mismatch    conflicting variadic declaration of method and its implementation
-Woverriding-method-mismatch    conflicting distributed object modifiers on return type in declaration of %0
-Woverriding-method-mismatch    conflicting parameter types in declaration of %0%diff{: $ vs $|}1,2
-Woverriding-method-mismatch    conflicting return type in declaration of %0%diff{: $ vs $|}1,2
-Woverriding-method-mismatch    conflicting return type in declaration of %0: %1 vs %2
-Wpacked    packed attribute is unnecessary for %0
-Wpadded    padding %select{struct|interface|class}0 %1 with %2 %select{byte|bit}3%select{|s}4 to align anonymous bit-field
-Wpadded    padding %select{struct|interface|class}0 %1 with %2 %select{byte|bit}3%select{|s}4 to align %5
-Wpadded    padding size of %0 with %1 %select{byte|bit}2%select{|s}3 to alignment boundary
-Wparentheses    using the result of an assignment as a condition without parentheses
-Wparentheses    %0 has lower precedence than %1 %1 will be evaluated first
-Wparentheses    operator '?:' has lower precedence than '%0' '%0' will be evaluated first
-Wparentheses-equality    equality comparison with extraneous parentheses
-Wpointer-arith    subtraction of pointers to type %0 of zero size has undefined behavior
-Wpredefined-identifier-outside-function    predefined identifier is only valid inside function
-Wprivate-extern    use of __private_extern__ on a declaration may not produce external symbol private to the linkage unit and is deprecated
-Wprotocol    method %0 in protocol not implemented
-Wprotocol-property-synthesis-ambiguity    property of type %0 was selected for synthesis
-Wreadonly-iboutlet-property    readonly IBOutlet property '%0' when auto-synthesized may not work correctly with 'nib' loader
-Wreadonly-setter-attrs    property attributes '%0' and '%1' are mutually exclusive
-Wreceiver-expr    receiver type %0 is not 'id' or interface pointer, consider casting it to 'id'
-Wreceiver-forward-class    receiver type %0 for instance message is a forward declaration
-Wreceiver-is-weak    "weak %select{receiver|property|implicit property}0 may be unpredictably set to nil
-Wreinterpret-base-class    'reinterpret_cast' %select{from|to}3 class %0 %select{to|from}3 its %select{virtual base|base at non-zero offset}2 %1 behaves differently from 'static_cast'
-Wreorder    %select{field|base class}0 %1 will be initialized after %select{field|base}2 %3
-Wrequires-super-attribute    %0 attribute cannot be applied to %select{methods in protocols|dealloc}1
-Wreturn-stack-address    returning address of local temporary object
-Wreturn-stack-address    returning address of label, which is local
-Wreturn-stack-address    address of stack memory associated with local variable %0 returned
-Wreturn-stack-address    reference to stack memory associated with local variable %0 returned
-Wreturn-stack-address    returning reference to local temporary object
-Wreturn-type    control may reach end of non-void function
-Wreturn-type    non-void %select{function|method}1 %0 should return a value, DefaultError
-Wreturn-type    control reaches end of non-void function
-Wreturn-type-c-linkage    %0 has C-linkage specified, but returns incomplete type %1 which could be incompatible with C
-Wreturn-type-c-linkage    %0 has C-linkage specified, but returns user-defined type %1 which is incompatible with C
-Wsection    section does not match previous declaration
-Wselector    creating selector for nonexistent method %0
-Wselector-type-mismatch    multiple selectors named %0 found
-Wself-assign    explicitly assigning a variable of type %0 to itself
-Wself-assign-field    assigning %select{field|instance variable}0 to itself
-Wsentinel    "missing sentinel in %select{function call|method dispatch|block call}0
-Wsentinel    not enough variable arguments in %0 declaration to fit a sentinel
-Wshadow    declaration shadows a %select{" "local variable|" "variable in %2|" "static data member of %2|" "field of %2}1
-Wshadow-ivar    local declaration of %0 hides instance variable
-Wshift-count-negative    shift count is negative
-Wshift-count-overflow    shift count = width of type
-Wshift-op-parentheses    operator '%0' has lower precedence than '%1' '%1' will be evaluated first
-Wshift-overflow    signed shift result (%0) requires %1 bits to represent, but %2 only has %3 bits
-Wshift-sign-overflow    signed shift result (%0) sets the sign bit of the shift expression's type (%1) and becomes negative
-Wshorten-64-to-32    implicit conversion loses integer precision: %0 to %1
-Wsign-compare    comparison of integers of different signs: %0 and %1
-Wsign-conversion    implicit conversion changes signedness: %0 to %1
-Wsign-conversion    operand of ? changes signedness: %0 to %1
-Wsizeof-array-argument    sizeof on array function parameter will return size of %0 instead of %1
-Wsizeof-array-decay    sizeof on pointer operation will return size of %0 instead of %1
-Wsizeof-pointer-memaccess    '%0' call operates on objects of type %1 while the size is based on a " "different type %2
-Wsizeof-pointer-memaccess    argument to 'sizeof' in %0 call is the same pointer type %1 as the %select{destination|source}2 expected %3 or an explicit length
-Wsometimes-uninitialized    variable %0 is %select{used|captured}1 uninitialized whenever %select{'%3' condition is %select{true|false}4|'%3' loop %select{is entered|exits because its condition is false}4|'%3' loop %select{condition is true|exits because its condition is false}4|switch %3 is taken|its declaration is reached|%3 is called}2
-Wstatic-local-in-inline    non-constant static local variable in inline function may be different in different files
-Wstatic-self-init    static variable %0 is suspiciously used within its own initialization
-Wstrict-selector-match    multiple methods named %0 found
-Wstring-compare    result of comparison against %select{a string literal|@encode}0 is unspecified (use strncmp instead)
-Wstring-conversion    implicit conversion turns string literal into bool: %0 to %1
-Wstring-plus-char    adding %0 to a string pointer does not append to the string
-Wstring-plus-int    adding %0 to a string does not append to the string
-Wstrlcpy-strlcat-size    size argument in %0 call appears to be size of the source expected the size of the destination
-Wstrncat-size    the value of the size argument in 'strncat' is too large, might lead to a " "buffer overflow
-Wstrncat-size    size argument in 'strncat' call appears " "to be size of the source
-Wstrncat-size    the value of the size argument to 'strncat' is wrong
-Wsuper-class-method-mismatch    method parameter type %diff{$ does not match super class method parameter type $|does not match super class method parameter type}0,1
-Wswitch    overflow converting case value to switch condition type (%0 to %1)
-Wswitch    case value not in enumerated type %0
-Wswitch    %0 enumeration values not handled in switch: %1, %2, %3...
-Wswitch    enumeration values %0 and %1 not handled in switch
-Wswitch    enumeration value %0 not handled in switch
-Wswitch    enumeration values %0, %1, and %2 not handled in switch
-Wswitch-enum    enumeration values %0, %1, and %2 not explicitly handled in switch
-Wswitch-enum    enumeration values %0 and %1 not explicitly handled in switch
-Wswitch-enum    %0 enumeration values not explicitly handled in switch: %1, %2, %3...
-Wswitch-enum    enumeration value %0 not explicitly handled in switch
-Wtautological-compare    comparison of %0 unsigned%select{| enum}2 expression is always %1
-Wtautological-compare    %select{self-|array }0comparison always evaluates to %select{false|true|a constant}1
-Wtautological-compare    comparison of unsigned%select{| enum}2 expression %0 is always %1
-Wtautological-constant-out-of-range-compare    comparison of constant %0 with expression of type %1 is always %select{false|true}2
-Wthread-safety-analysis    locking '%0' that is already locked
-Wthread-safety-analysis    cannot call function '%0' while mutex '%1' is locked
-Wthread-safety-analysis    %select{reading|writing}2 the value pointed to by '%0' requires locking %select{'%1'|'%1' exclusively}2
-Wthread-safety-analysis    unlocking '%0' that was not locked
-Wthread-safety-analysis    mutex '%0' is locked exclusively and shared in the same scope
-Wthread-safety-analysis    calling function '%0' requires %select{shared|exclusive}2 lock on '%1'
-Wthread-safety-analysis    %select{reading|writing}2 variable '%0' requires locking %select{'%1'|'%1' exclusively}2
-Wthread-safety-analysis    cannot resolve lock expression
-Wthread-safety-analysis    expecting mutex '%0' to be locked at the end of function
-Wthread-safety-analysis    mutex '%0' is not locked on every path through here
-Wthread-safety-analysis    %select{reading|writing}1 the value pointed to by '%0' requires locking %select{any mutex|any mutex exclusively}1
-Wthread-safety-analysis    %select{reading|writing}1 variable '%0' requires locking %select{any mutex|any mutex exclusively}1
-Wthread-safety-analysis    mutex '%0' is still locked at the end of function
-Wthread-safety-analysis    expecting mutex '%0' to be locked at start of each loop
-Wthread-safety-attributes    ignoring %0 attribute because its argument is invalid
-Wthread-safety-attributes    %0 attribute only applies to %select{fields and global variables|functions and methods|classes and structs}1
-Wthread-safety-attributes    %0 attribute requires arguments that are class type or point to class type type here is '%1'
-Wthread-safety-attributes    %0 attribute can only be applied in a context annotated with 'lockable' attribute
-Wthread-safety-attributes    %0 attribute requires arguments whose type is annotated with 'lockable' attribute type here is '%1'
-Wthread-safety-attributes    '%0' only applies to pointer types type here is %1
-Wthread-safety-beta    Thread safety beta warning.
-Wthread-safety-precise    %select{reading|writing}2 the value pointed to by '%0' requires locking %select{'%1'|'%1' exclusively}2
-Wthread-safety-precise    %select{reading|writing}2 variable '%0' requires locking %select{'%1'|'%1' exclusively}2
-Wthread-safety-precise    calling function '%0' requires %select{shared|exclusive}2 lock on '%1'
-Wtype-safety    this type tag was not designed to be used with this function
-Wtype-safety    specified %0 type tag requires a null pointer
-Wtype-safety    argument type %0 doesn't match specified '%1' type tag %select{that requires %3|}2
-Wundeclared-selector    undeclared selector %0 did you mean %1?
-Wundeclared-selector    undeclared selector %0
-Wundefined-inline    inline function %q0 is not defined
-Wundefined-internal    %select{function|variable}0 %q1 has internal linkage but is not defined
-Wundefined-reinterpret-cast    dereference of type %1 that was reinterpret_cast from type %0 has undefined behavior
-Wundefined-reinterpret-cast    reinterpret_cast from %0 to %1 has undefined behavior
-Wuninitialized    reference %0 is not yet bound to a value when used within its own initialization
-Wuninitialized    field %0 is uninitialized when used here
-Wuninitialized    block pointer variable %0 is uninitialized when captured by block
-Wuninitialized    variable %0 is uninitialized when used within its own initialization
-Wuninitialized    variable %0 is uninitialized when %select{used here|captured by block}1
-Wuninitialized    reference %0 is not yet bound to a value when used here
-Wunneeded-internal-declaration    %select{function|variable}0 %1 is not needed and will not be emitted
-Wunneeded-internal-declaration    'static' function %0 declared in header file should be declared 'static inline'
-Wunneeded-member-function    member function %0 is not needed and will not be emitted
-Wunreachable-code    will never be executed
-Wunsequenced    multiple unsequenced modifications to %0
-Wunsequenced    unsequenced modification and access to %0
-Wunsupported-friend    dependent nested name specifier '%0' for friend template declaration is not supported ignoring this friend declaration
-Wunsupported-friend    dependent nested name specifier '%0' for friend class declaration is not supported turning off access control for %1
-Wunsupported-visibility    target does not support 'protected' visibility using 'default'
-Wunused-comparison    %select{equality|inequality}0 comparison result unused
-Wunused-const-variable    unused variable %0
-Wunused-exception-parameter    unused exception parameter %0
-Wunused-function    unused function %0
-Wunused-label    unused label %0
-Wunused-member-function    unused member function %0
-Wunused-parameter    unused parameter %0
-Wunused-private-field    private field %0 is not used
-Wunused-property-ivar    ivar %0 which backs the property is not referenced in this property's accessor
-Wunused-result    ignoring return value of function declared with warn_unused_result attribute
-Wunused-value    ignoring return value of function declared with %0 attribute
-Wunused-value    expression result unused should this cast be to 'void'?
-Wunused-value    expression result unused
-Wunused-variable    unused variable %0
-Wunused-volatile-lvalue    expression result unused assign into a variable to force a volatile load
-Wused-but-marked-unused    %0 was marked unused but was used
-Wuser-defined-literals    user-defined literal suffixes not starting with '_' are reserved%select{ no literal will invoke this operator|}0
-Wvarargs    second parameter of 'va_start' not last named argument
-Wvarargs    'va_start' has undefined behavior with reference types
-Wvarargs    second argument to 'va_arg' is of promotable type %0 this va_arg has undefined behavior because arguments will be promoted to %1
-Wvector-conversion    incompatible vector types %select{%diff{assigning to $ from $|assigning to different types}0,1|%diff{passing $ to parameter of type $|passing to parameter of different type}0,1|%diff{returning $ from a function with result type $|returning from function with different return type}0,1|%diff{converting $ to type $|converting between types}0,1|%diff{initializing $ with an expression of type $|initializing with expression of different type}0,1|%diff{sending $ to parameter of type $|sending to parameter of different type}0,1|%diff{casting $ to type $|casting between types}0,1}2
-Wvexing-parse    parentheses were disambiguated as a function declaration
-Wvexing-parse    empty parentheses interpreted as a function declaration
-Wvisibility    declaration of %0 will not be visible outside of this function
-Wvisibility    redefinition of %0 will not be visible outside of this function
-Wvla    variable length array used
-Wvla-extension    variable length arrays are a C99 feature
-Wweak-template-vtables    explicit template instantiation %0 will emit a vtable in every translation unit
-Wweak-vtables    %0 has no out-of-line virtual method definitions; its vtable will be emitted in every translation unit
Lexer Warnings
Warning    Message
-W#pragma-messages    %0
-W#warnings    %0
-W#warnings    %0
-Wambiguous-macro    ambiguous expansion of macro %0
-Wauto-import    treating #%select{include|import|include_next|__include_macros}0 as an import of module '%1'
-Wbackslash-newline-escape    backslash and newline separated by space
-Wc++11-compat    identifier after literal will be treated as a user-defined literal suffix in C++11
-Wc++11-compat    '%0' is a keyword in C++11
-Wc++98-c++11-compat    digit separators are incompatible with C++ standards before C++1y
-Wc++98-c++11-compat-pedantic    binary integer literals are incompatible with C++ standards before C++1y
-Wc++98-compat    raw string literals are incompatible with C++98
-Wc++98-compat    unicode literals are incompatible with C++98
-Wc++98-compat    universal character name referring to a control character is incompatible with C++98
-Wc++98-compat    '::' is treated as digraph ':' (aka '[') followed by ':' in C++98
-Wc++98-compat    using this character in an identifier is incompatible with C++98
-Wc++98-compat    specifying character '%0' with a universal character name is incompatible with C++98
-Wc++98-compat-pedantic    variadic macros are incompatible with C++98
-Wc++98-compat-pedantic    #line number greater than 32767 is incompatible with C++98
-Wc++98-compat-pedantic    C++98 requires newline at end of file
-Wc++98-compat-pedantic    empty macro arguments are incompatible with C++98
-Wc99-compat    unicode literals are incompatible with C99
-Wc99-compat    %select{using this character in an identifier|starting an identifier with this character}0 is incompatible with C99
-Wcomment    '/*' within block comment
-Wcomment    escaped newline between */ characters at block comment end
-Wdisabled-macro-expansion    disabled expansion of recursive macro
-Wheader-guard    %0 is used as a header guard here, followed by #define of a different macro
-Wignored-attributes    unknown attribute '%0'
-Wincomplete-module    header '%0' is included in module '%1' but not listed in module map
-Wincomplete-umbrella    umbrella header for module '%0' does not include header '%1'
-Winvalid-token-paste    pasting formed '%0', an invalid preprocessing token, DefaultError
-Wmalformed-warning-check    __has_warning expected option name (e.g. \"-Wundef\")
-Wnewline-eof    no newline at end of file
-Wnull-character    null character ignored
-Wnull-character    null character(s) preserved in string literal
-Wnull-character    null character(s) preserved in character literal
-Wtrigraphs    ignored trigraph would end block comment
-Wtrigraphs    trigraph ignored
-Wundef    %0 is not defined, evaluates to 0
-Wunicode    universal character names are only valid in C99 or C++ treating as '\\' followed by identifier
-Wunicode    \\%0 used with no following hex digits treating as '\\' followed by identifier
-Wunicode    incomplete universal character name treating as '\\' followed by identifier
-Wunicode    universal character name refers to a surrogate character
-Wunknown-pragmas    unknown pragma ignored
-Wunknown-pragmas    pragma STDC FENV_ACCESS ON is not supported, ignoring pragma
-Wunused-macros    macro is not used
Parser Warnings
Warning    Message
-Warc-bridge-casts-disallowed-in-nonarc    '%0' casts have no effect when not using ARC
-Wattributes    unknown __declspec attribute %0 ignored
-Wavailability    'unavailable' availability overrides all other availability information
-Wc++11-compat    use of right-shift operator ('') in template argument will require parentheses in C++11
-Wc++11-compat    'auto' storage class specifier is redundant and incompatible with C++11
-Wc++98-c++11-compat    'decltype(auto)' type specifier is incompatible with C++ standards before C++1y
-Wc++98-compat    range-based for loop is incompatible with C++98
-Wc++98-compat    alias declarations are incompatible with C++98
-Wc++98-compat    in-class initialization of non-static data members is incompatible with C++98
-Wc++98-compat    defaulted function definitions are incompatible with C++98
-Wc++98-compat    rvalue references are incompatible with C++98
-Wc++98-compat    reference qualifiers on functions are incompatible with C++98
-Wc++98-compat    inline namespaces are incompatible with C++98
-Wc++98-compat    generalized initializer lists are incompatible with C++98
-Wc++98-compat    trailing return types are incompatible with C++98
-Wc++98-compat    enumeration types with a fixed underlying type are incompatible with C++98
-Wc++98-compat    alignof expressions are incompatible with C++98
-Wc++98-compat    '%0' keyword is incompatible with C++98
-Wc++98-compat    'decltype' type specifier is incompatible with C++98
-Wc++98-compat    deleted function definitions are incompatible with C++98
-Wc++98-compat    consecutive right angle brackets are incompatible with C++98 (use '> >')
-Wc++98-compat    static_assert declarations are incompatible with C++98
-Wc++98-compat    scoped enumerations are incompatible with C++98
-Wc++98-compat    lambda expressions are incompatible with C++98
-Wc++98-compat    attributes are incompatible with C++98
-Wc++98-compat    'alignas' is incompatible with C++98
-Wc++98-compat    noexcept specifications are incompatible with C++98
-Wc++98-compat    literal operators are incompatible with C++98
-Wc++98-compat    noexcept expressions are incompatible with C++98
-Wc++98-compat    'nullptr' is incompatible with C++98
-Wc++98-compat-pedantic    extra '' outside of a function is incompatible with C++98
-Wc++98-compat-pedantic    extern templates are incompatible with C++98
-Wc++98-compat-pedantic    commas at the end of enumerator lists are incompatible with C++98
-Wdangling-else    add explicit braces to avoid dangling else
-Wdeprecated    Use of 'long' with '__vector' is deprecated
-Wdeprecated-declarations    use of C-style parameters in Objective-C method declarations is deprecated
-Wdeprecated-register    'register' storage class specifier is deprecated
-Wduplicate-decl-specifier    duplicate '%0' declaration specifier
-Wextra-semi    extra ';' after member function definition
-Wextra-tokens    "extra tokens at the end of '#pragma omp %0' are ignored
-Wgcc-compat    GCC does not allow %0 attribute in this position on a function definition
-Wignored-attributes    attribute %0 ignored, because it is not attached to a declaration
-Wmicrosoft-exists    dependent %select{__if_not_exists|__if_exists}0 declarations are ignored
-Wmissing-selector-name    %0 used as the name of the previous parameter rather than as part of the selector
-Wsemicolon-before-method-body    semicolon before method body is ignored
-Wsource-uses-openmp    "unexpected '#pragma omp ...' in program
-Wstatic-inline-explicit-instantiation    ignoring '%select{static|inline}0' keyword on explicit template instantiation
Java全栈开发:充电桩管理系统项目实战 技术收获深入理解分布式系统架构掌握高并发场景解决方案提升系统设计能力经验教训前期需求分析的重要性技术选型需要考虑长期维护测试覆盖率的重要性未来展望引入AI预测故障支持更多支付方式优化用户体验通过此项目的开发,不仅实现了充电桩的智能化管理,也积累了宝贵的全栈开发经验。项目中的很多技术方案和架构设计都具有普遍适用性,可以在其他类似项目中借鉴使用。@Componentstatic {// 初始化状态转换规则。 阅读详情

相关推荐

【深度解析】信息素养提升实践活动(附:历年获奖作品分析)

全国师生信息素养提升实践活动是由教育部教育技术与资源发展中心(中央电化教育馆)主办,面向全国师生的一项信息化交流展示活动。

m0_74417957的博客 9653

报错,求解决

SOS,各位大佬 这种是什么情况啊,代码没有报错,,模块找不到是什么意思啊,求救

livenobug的博客 2185

基于Llama 3搭建中文版(Llama3-Chinese-Chat)大模型对话聊天机器人

前面两篇博文,我们在笔记本部署了Llama 3 8B大模型,使用Ollama搭建了基于Web 可视化对话机器人。在使用过程中,大模型经常出现中文问题英文回答的问题。本博文就用Llama3-Chinese-Chat微调模型来解决这个问题……

老牛啊 9239

Vivado错误[Place30-494]

[Place 30-494] The design is empty Resolution: Check if opt_design has removed all the leaf cells of your design. Check whether you have instantiated and connected all of the top level ports. 我碰到这个问题是顶层模块没有output,我当时在测试一个bram的读取,就在顶层模块下例化一个状态机用于rd/wr,结果就.

luanzhengxuan7的博客 1万+

VisionMaster4.2.0与C#控件开发实战:从入门到精通的完整指南

本文详细介绍了VisionMaster4.2.0与C#控件开发的实战指南,从基础环境搭建到核心控件使用,再到高级功能实现。通过VmFrontendControl、VmGlobalToolControl等核心控件的深入解析,帮助开发者快速掌握机器视觉应用开发技巧,提升开发效率。特别适合需要集成VisionMaster4.2.0 SDK进行视觉系统开发的C#程序员。

weixin_42665725的博客 383

PCL 点云加权均值收缩

PCL 点云加权均值收缩

dayuhaitang1的博客 689

springboot项目上传文件突然报java.io.FileNotFoundException:/private/var/folders/...

原因:springboot启动时会创建一个用于上传文件的临时目录,而系统会在10天后自动清除该目录。解决:在启动类中增加如下代码,指定临时文件路径。

Luohuals的博客 832

数字图像处理 基于matlab、opencv计算图像的梯度方向和梯度幅值

图像可以被视为标量场(即二维函数)。通过微分将标量场转换为矢量场。梯度是一个向量,描述了在x或y方向上移动时,图像变化的速度。我们使用导数来回答这样的问题,图像梯度的大小告诉图像变化的速度,而梯度的方向告诉图像变化最快的方向。因为梯度有方向和大小,所以将这些信息编码为向量是很自然的。该向量的长度提供了梯度的大小,而其方向提供了梯度方向。因为梯度在每个位置可能不同,所以我们在每个图像位置用不同的向量来表示它。

学以致用 知行合一 3203

Altium Designer出现collision警告

使用Altium Designer绘制PCB时,出现collision是多个器件的丝印重叠的报警。 解决办法:允许器件堆叠 AD中菜单栏打开design—— rules对话框,在对话框左侧分类栏里点击打开placement——component clearance选项,这时右面显示规定的元件间的垂直和水平最小间距数值,把数值改为0就行了。 ...

硬件之家,技术前行 2万+

TPM 2.0实例探索2 —— LUKS磁盘加密(1)

本文对LUKS行了系统介绍

phmatthaus的专栏 1700

【数字IC设计】芯片设计中的RDC

在芯片设计中,RDC是的缩写,类似于CDC(clock domain crossing),由于现在SOC芯片是有很多ECUs组成,为了使整个系统能够快速从复位中恢复, 用户希望SOC里面每个ECU模块都可以有自己独立的异步复位信号,这样可以在出问题的时候只复位有错误逻辑的模块,而使其它模块保持正常工作。

qq_40268672的博客 2189

关于eclipse中同步代码报错checkout conflict with files的解决方法

大家在操作前建议先看看评论区网友的回复。我不是专业做开发的,当时只关注了问题最终的处理,没有深入研究成因。 测试环境需要自己维护,某天同步代码的时候遇到checkout conflict with files错误,自己要面子查资料无果。请教了开发人员,说是修改了配置文件造成冲突,然后告诉了我解决方法。今天再一次遇到问题,翻聊天记录把解决过程记录下来方便以后自己查阅和网友交流学习。不恰之处欢...

小亮的博客 5万+

uniapp | vue2 | vue3 - 解决调用天地图功能服务时 http 网络请求报错 net::ERR ABORTED 503(Service Temporarily Unavailabl)

vue,uni-app,天地图,请求报错,503,请求失败,map.tianditu,天地图503,天地图请求503,接口503错误怎么办,vue天地图,uniAPP天地图,获取定位接口服务器报错503,获取当前定位,定位功能,IP属地定位,天地图服务器报错,如何解决报错,net::ERRABORTED503(ServiceTemporarilyUnavailabl),GET,POST,服务暂时不可用,react天地图,一直等待吗,报错怎么办,定位报错,轨迹,经纬度,天地图服务器503,在vue2

🏆 前端领域优质创作者 4438

iOS 消除对应的警告!

原文链接:http://www.jianshu.com/p/eb03e20f7b1c 在iOS开发过程中, 我们可能会碰到一些系统方法弃用, weak、循环引用、不能执行之类的警告。 有代码洁癖的孩子们很想消除他们, 今天就让我们来一次Fuck 警告!! 首先学会基本的语句 #pragma clang diagnostic push #pragma clang diagnostic

u010856537的专栏 2408

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

mark~ iOS消除对应的警告!之代码洁癖

2019独角兽企业重金招聘Python工程师标准>>> ...

weixin_34015566的博客 270

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

消除iOS中多余的警告

在iOS开发过程中, 大堆的警告让人很不爽,接下来介绍几种消除警告的方法《1》错误如下,是查询 Library 的时候出现的异常找不到文件在这个位置;如果你引用的 Frameworks 没有在标准位置(standard locations),那么,你需要在工程的配置文件里设置 “Framework Search Paths”, 用来为编译器(compiler)和连接器(linker)指定搜索路径。

2493

android 蓝牙通讯demo

android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。

iOS:消除项目中警告

引言: 在iOS开发过程中, 我们可能会碰到一些系统方法弃用, weak、循环引用、不能执行之类的警告。 有代码洁癖的孩子们很想消除他们, 今天就让我们来一次Fuck 警告!! 首先学会基本的语句: #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations...

dienangpiao2051的博客 462

iOS 消除警告整理

这样就会造成一个问题:在Swift与Objective-C混编时,Swift编译器并不知道一个Objective-C对象到底是optional还是non-optional,因此这种情况下编译器会隐式地将Objective-C的对象当成是non-optional。后来才发现,因为cell的高度是根据约束变化,对于固定高度的cell,我约束了某个控件的。framework支持的最低的版本是14.5,而项目支持的最低版本是12.1。swift和oc混编的项目中,swift使用到的oc类中会有下面的警告。

king6188的博客 535

iOS 警告收集快速消除

1.ld: warning: directory not found for option 去掉警告的方法 工程老是提示ld: warning: directory not found for option:xxxxxx 这种提示,通常是由于添加了第三方SDK,但是后来改了个名字或者去掉了SDK,但是在 Build Settings----->Search Paths---...

448

iOS 警告收录及科学快速的消除方法

前言:现在你维护的项目有多少警告?看着几百条警告觉得心里烦么?你真的觉得警告又不是错误可以完全不管么? 如果你也被这些问题困惑,可以和我一起进行下面的操作。其实大部分的警告都是很好改的,把自己整个项目的警告撸一遍应该也就耗费半小时的时间,一次麻烦带来之后的清净这样不好么? //  Created by 王聪 on 14/8/25. 本文分为三个部分:1.简单粗暴的消除警告。 2.详细科学的消除...

Binary_System123的博客 668

iOS-如何消除警告

基本语句#pragma clang diagnostic push #pragma clang diagnostic ignored "-Wundeclared-selector" 这里是出现警告的代码段#pragma clang diagnostic pop 上面的语句中 ignored 后面的字符串就是消除对应警告所需要写的字符串,不同的警告有不同的字符串与之对应,找到对应的警告即可(快速查阅快

Developer 2225

iOS OC消除黄色警告⚠️ (不断的更新中...)

开发一个项目时,难免会产生很多警告,一些是第三方或是老代码不再被支持造成的,但并不影响使用,这些警告其实可以直接隐藏掉!还有一些警告可能是系统方法弃用、不兼容指针类型、未使用变量、未使用default、weak、循环引用、不能执行之类的警告。 首先说下我使用CocoPod在管理我的第三方,最近在升级的时候,把一些第三方直接升到了最新版本,结果现在使用的一些方法就出现了警告,所以这里建议在

5663

iOS--消除警告与定制警告

一:消除警告 警告1.没有用到#pragma clang diagnostic push #pragma clang diagnostic ignored"-Wunused-variable" // unused-variable 类型的警告代码!#pragma clang diagnostic pop警告2.方法弃用#pragma clang diagnostic push #pragma

C_Lluckying的博客 828
上一篇: Android监听屏幕屏幕锁屏与解锁
下一篇: Android Service完全解析,关于服务你所需知道的一切(转载)
颠倒先生
博客等级 码龄11年 2粉丝 21原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值