be compensated for what he is obligated by the State to do. See State v. Johnson, 282 N.C. 1, 27, 191 S.E.2d 641, 659 (1972) (citing State v. Means, 175 N.C. 820, 822, 95 S.E. 912, 913 (1918)); N.C. Gen. Stat. § 7A-314. If a witness appears voluntarily, then he is entitled to no compensation. Johnson, 282 N.C. at 27, 191 S.E.2d at 659. Subject to the protections of Rule 45(c), the obligation to appear as a witness is perfected when the subpoena is served on the witness. N.C. Gen. Stat. § 1A-1, Rule 45(e)(1). Therefore the right to compensation depends on the subpoena being served on the witness, and is not dependent on service of a copy of the subpoena on the opposing party. It follows therefore, in determining whether the trial court is barred by the lack of a subpoena from award 19 (<HOLDING>). As we noted in Vaden, 187 N.C. App. at
holding that expenses includes costs holding if a deposition is taken for discovery only  not for use at trial the deposition is not a stage of trial for which the defendant must be present holding that a deposition that was not presented to the trial court could not be considered on appeal holding that deposition testimony may constitute other paper holding that deposition expenses are an allowable cost