fix gh-1381 c linker crash with not used inputs.