Let $B_{p}$ be the Ariõ-Muckenhoupt weight class which controls the weighted $L^{p}$-norm inequalities for the Hardy operator on non-increasing functions. We replace the constant p by a function p(x) and examine the associated $L^{p(x)}$-norm inequalities of the Hardy operator.