The comments represented a stark — if not unprecedented — warning during a pomp-filled occasion that otherwise appeared friendly and relaxed.