Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
7690 Discussions

Variable initialization with a function?

Tang__Yaotian
Beginner
146 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
146 Views

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

Reply