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

Variable initialization with a function?

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

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

0 Kudos
Reply