| 1811 | |
| 1812 | |
| 1813 | void BURP_print_warning(Firebird::IStatus* status) |
| 1814 | { |
| 1815 | /************************************** |
| 1816 | * |
| 1817 | * B U R P _ p r i n t _ w a r n i n g |
| 1818 | * |
| 1819 | ************************************** |
| 1820 | * |
| 1821 | * Functional description |
| 1822 | * Print warning message. Use fb_interpret |
| 1823 | * to allow redirecting output. |
| 1824 | * |
| 1825 | **************************************/ |
| 1826 | if (status && (status->getState() & Firebird::IStatus::STATE_WARNINGS)) |
| 1827 | { |
| 1828 | BurpMaster master; |
| 1829 | BurpGlobals* tdgbl = master.get(); |
| 1830 | |
| 1831 | // print the warning message |
| 1832 | const ISC_STATUS* vector = status->getWarnings(); |
| 1833 | SCHAR s[1024]; |
| 1834 | |
| 1835 | if (fb_interpret(s, sizeof(s), &vector)) |
| 1836 | { |
| 1837 | BURP_msg_partial(false, 255); // msg 255: gbak: WARNING: |
| 1838 | burp_output(false, "%s\n", s); |
| 1839 | |
| 1840 | while (fb_interpret(s, sizeof(s), &vector)) |
| 1841 | { |
| 1842 | BURP_msg_partial(false, 255); // msg 255: gbak: WARNING: |
| 1843 | burp_output(false, " %s\n", s); |
| 1844 | } |
| 1845 | } |
| 1846 | } |
| 1847 | } |
| 1848 | |
| 1849 | |
| 1850 | void BURP_verbose(USHORT number, const SafeArg& arg) |
nothing calls this directly
no test coverage detected