For the completeness, I just quickly tested this with a minimum project
Same environment as above, still got the same warning.
Same environment as above, still got the same warning.
Code:
/*
* File: main.c
* Author: james
*
* Created on 16 April 2019, 3:05 PM
*/
#include <xc.h>
#include <stdint.h>
void main(void) {
SPBRG = (uint8_t) (416U & 0x00FF);
}