Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Variable initialization with a function?

Tang__Yaotian
Beginner
278 Views

I tried to initialize a local variable by invoking a function, but the compiler reports the variable was declared but never referenced. Is this because I missed some compilation parameters? This error also happens if I use compiler intrinsics to initialize a variable.

0 Kudos
1 Reply
Viet_H_Intel
Moderator
278 Views

a was not referenced in your program. You can suppress the error by adding -wd177

0 Kudos
Reply