Have a look inside the projects options, the target options and the global compiler options in "Settings -> Compiler and Debugger -> Global compiler settingss -> GNU AVR GCC Compiler (or however it is called on windows and only if you use this toolchain, what's recommended I think)" , to be absolutely sure that nothing resides there, that has accidently slipped in.