XC8 V2 C99 Issues

warning: (520) function “_SomeFunctionName” is never called Setting warning level to 0 will get rid of this one Right click project > Properties > XC8 Global Options > XC8 Compiler > Warning Level = 0 warning: ‘/*’ within block comment [-Wcomment] This is a stupid GCC warning that is detailed here. To suppress it include this […]

Read More

Inclusive programming terms

Newer inclusive programming terms Old New master / slave leader / followerprimary / replicaprimary / standby whitelist / blacklist allowlist / denylist grandfathered legacy status sanity check quick checkconfidence checkcoherence check dummy value placeholder valuesample value man hours person hoursengineer hours guys folkspeopleyou ally’all he / hisher / hers theytheir

Read More

warning: expression generates no code

Example error message: “ap-main.c:189:: warning: (759) expression generates no code” Example that will cause it: This error is not usually generated by compilers, but is for XC8 and Microchip supported it with: The compiler detects that the condition is true, eliminates the code generation for the condition and produces a warning to this effect. No […]

Read More

Issues with Code Configurator

warning: (1518) direct function call made with an incomplete prototype For example warning will be created for calling this code configurator generated function: Warning is created because code configurator code is incorrect, they have declared their (void) functions without including the “void” in the function definition brackets. This is not correct for a C function, […]

Read More