Skip to content

Lab03_sln Warnings #1

@Robadob

Description

@Robadob

As of Visual Studio 2022(?) compilation now warns for private scope variables which are declared early.

Rebuild started...
1>------ Rebuild All started: Project: Lab03_Exercise02, Configuration: Debug Win32 ------
2>------ Rebuild All started: Project: Lab03_Exercise01, Configuration: Debug Win32 ------
1>exercise02_sln.c
1>U:\COMCUDA_labs\Lab03_Exercise02\exercise02_sln.c(40,14): warning C4101: 'c_i': unreferenced local variable
1>U:\COMCUDA_labs\Lab03_Exercise02\exercise02_sln.c(42,9): warning C4101: 'mu': unreferenced local variable
1>U:\COMCUDA_labs\Lab03_Exercise02\exercise02_sln.c(41,9): warning C4101: 'n_r': unreferenced local variable
1>U:\COMCUDA_labs\Lab03_Exercise02\exercise02_sln.c(41,14): warning C4101: 'n_i': unreferenced local variable
1>U:\COMCUDA_labs\Lab03_Exercise02\exercise02_sln.c(39,9): warning C4101: 'x': unreferenced local variable
1>U:\COMCUDA_labs\Lab03_Exercise02\exercise02_sln.c(41,24): warning C4101: 'o_i': unreferenced local variable
1>U:\COMCUDA_labs\Lab03_Exercise02\exercise02_sln.c(41,19): warning C4101: 'o_r': unreferenced local variable
1>U:\COMCUDA_labs\Lab03_Exercise02\exercise02_sln.c(40,9): warning C4101: 'c_r': unreferenced local variable
2>exercise01_sln.c
2>U:\COMCUDA_labs\Lab03_Exercise01\exercise01_sln.c(116,12): warning C4101: 'k': unreferenced local variable
2>U:\COMCUDA_labs\Lab03_Exercise01\exercise01_sln.c(116,9): warning C4101: 'j': unreferenced local variable
2>U:\COMCUDA_labs\Lab03_Exercise01\exercise01_sln.c(117,14): warning C4101: 'temp': unreferenced local variable
2>U:\COMCUDA_labs\Lab03_Exercise01\exercise01_sln.c(115): warning C4101: 'i': unreferenced local variable
1>Lab03_Exercise02.vcxproj -> U:\COMCUDA_labs\Debug\Lab03_Exercise02.exe
2>Lab03_Exercise01.vcxproj -> U:\COMCUDA_labs\Debug\Lab03_Exercise01.exe
1>Done building project "Lab03_Exercise02.vcxproj".

Not an immediate concern to fix, this feels more like a compiler bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions