projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
preprocessor: Do not use uninitialized values for the column in error messages.
[cparser]
/
diagnostic.h
diff --git
a/diagnostic.h
b/diagnostic.h
index
7f00a43
..
8b5ef77
100644
(file)
--- a/
diagnostic.h
+++ b/
diagnostic.h
@@
-22,6
+22,7
@@
#include <stdbool.h>
#include "token_t.h"
#include <stdbool.h>
#include "token_t.h"
+#include "warning.h"
/* define a NORETURN attribute */
#ifndef NORETURN
/* define a NORETURN attribute */
#ifndef NORETURN
@@
-59,12
+60,12
@@
*/
void diagnosticf(const char *fmt, ...);
void errorf(const source_position_t *pos, const char *fmt, ...);
*/
void diagnosticf(const char *fmt, ...);
void errorf(const source_position_t *pos, const char *fmt, ...);
-void warningf(const source_position_t *pos, const char *fmt, ...);
+void warningf(
warning_t,
const source_position_t *pos, const char *fmt, ...);
NORETURN internal_errorf(const source_position_t *pos, const char *fmt, ...);
NORETURN internal_errorf(const source_position_t *pos, const char *fmt, ...);
-extern unsigned diagnostic_count;
extern unsigned error_count;
extern unsigned warning_count;
extern unsigned error_count;
extern unsigned warning_count;
-extern bool show_column; /**< Show column in diagnostic messages */
+extern bool show_column; /**< Show column in diagnostic messages */
+extern bool diagnostics_show_option; /**< Show the switch, which controls a warning. */
#endif
#endif