Top "Warnings" questions

A warning is often issued on recognizing a potential high-risk situation, a probable misunderstanding, degraded service or imminent failure.

IntelliJ IDEA shows errors when using Spring's @Autowired annotation

IntelliJ IDEA is showing errors when I use Spring's @Autowired annotation in the class, but the class is functioning without …

spring spring-mvc intellij-idea warnings intellij-inspections
About inconsistent dll linkage

How can I remove this link warning? You can see code segment that causes this warning. static AFX_EXTENSION_MODULE …

c++ dll warnings linkage
Why do I get a warning every time I use malloc?

If I use malloc in my code: int *x = malloc(sizeof(int)); I get this warning from gcc: new.c:7: …

c gcc malloc warnings sizeof
"No newline at end of file" compiler warning

What is the reason for the following warning in some C++ compilers? No newline at end of file Why should …

c++ compiler-construction warnings c-preprocessor
How can I hide "defined but not used" warnings in GCC?

I have a bunch of compile time asserts, such as: CASSERT(isTrue) or CASSERT2(isTrue, prefix_) When compiling with GCC …

gcc warnings compiler-warnings
How to disable unused code warnings in Rust?

struct SemanticDirection; fn main() {} warning: struct is never used: `SemanticDirection` --> src/main.rs:1:1 | 1 | struct SemanticDirection; | ^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: #[warn(dead_…

warnings compiler-warnings rust dead-code
Selectively remove warning message GCC

This piece of code: Int32 status; printf("status : %x", status) gives me the following warning: jpegthread.c:157: warning: format '%…

gcc warnings
Avoid passing null as the view root (need to resolve layout parameters on the inflated layout's root element)

Passing null for root studio gives me this warning: Avoid passing null as the view root (need to resolve layout …

android android-layout warnings layout-inflater
Warning: "format not a string literal and no format arguments"

Since upgrading to the latest Xcode 3.2.1 and Snow Leopard, I've been getting the warning "format not a string literal and …

objective-c warnings string-formatting nslog
Warning : overflow in implicit constant conversion

In the following program, the line 5 does give overflow warning as expected, but surprisingly the line 4 doesn't give any warning …

c++ gcc warnings overflow integer-overflow