-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compiler warnings: no previous prototype
Local function should be declared static. Fix: pcsc.c:107:1: warning: no previous prototype for ‘pcsc_get_scardcontext’ [-Wmissing-prototypes] pcsc_get_scardcontext(void) ^~~~~~~~~~~~~~~~~~~~~ pcsc.c:119:1: warning: no previous prototype for ‘pcsc_free_scardcontext’ [-Wmissing-prototypes] pcsc_free_scardcontext(void) ^~~~~~~~~~~~~~~~~~~~~~ pcsc.c:135:5: warning: no previous prototype for ‘pcsc_transmit’ [-Wmissing-prototypes] int pcsc_transmit(struct nfc_device *pnd, const uint8_t *tx, const size_t tx_len, uint8_t *rx, size_t *rx_len) ^~~~~~~~~~~~~ pcsc.c:160:5: warning: no previous prototype for ‘pcsc_get_status’ [-Wmissing-prototypes] int pcsc_get_status(struct nfc_device *pnd, int *target_present, uint8_t *atr, size_t *atr_len) ^~~~~~~~~~~~~~~ pcsc.c:178:5: warning: no previous prototype for ‘pcsc_reconnect’ [-Wmissing-prototypes] int pcsc_reconnect(struct nfc_device *pnd, DWORD share_mode, DWORD protocol, DWORD disposition) ^~~~~~~~~~~~~~ pcsc.c:194:9: warning: no previous prototype for ‘pcsc_get_icc_type’ [-Wmissing-prototypes] uint8_t pcsc_get_icc_type(const struct nfc_device *pnd) ^~~~~~~~~~~~~~~~~ pcsc.c:203:6: warning: no previous prototype for ‘is_pcsc_reader_vendor’ [-Wmissing-prototypes] bool is_pcsc_reader_vendor(const struct nfc_device *pnd, const char *target_vendor_name) ^~~~~~~~~~~~~~~~~~~~~ pcsc.c:219:5: warning: no previous prototype for ‘pcsc_get_atqa’ [-Wmissing-prototypes] int pcsc_get_atqa(struct nfc_device *pnd, uint8_t *atqa, size_t atqa_len) ^~~~~~~~~~~~~ pcsc.c:245:5: warning: no previous prototype for ‘pcsc_get_ats’ [-Wmissing-prototypes] int pcsc_get_ats(struct nfc_device *pnd, uint8_t *ats, size_t ats_len) ^~~~~~~~~~~~ [...]
- Loading branch information
1 parent
fa78e8b
commit 5294c02
Showing
1 changed file
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters