summaryrefslogtreecommitdiffstats
path: root/dimension/utility.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-02-11 20:43:39 -0500
committerTavian Barnes <tavianator@gmail.com>2010-02-11 20:43:39 -0500
commit58e72047f53213e010d649cc220f63b2dce07134 (patch)
tree4a8b903834c9451b0f5f35d5ea40b67b9e21ac00 /dimension/utility.h
parentcf4f6e6da179114b3d7cfc564889401485b57fdf (diff)
downloaddimension-58e72047f53213e010d649cc220f63b2dce07134.tar.xz
Add printf-style warnings to dmnsn_diagnostic, and fix bugs it found.
Diffstat (limited to 'dimension/utility.h')
-rw-r--r--dimension/utility.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/dimension/utility.h b/dimension/utility.h
index c26069c..d4ebda4 100644
--- a/dimension/utility.h
+++ b/dimension/utility.h
@@ -17,6 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*************************************************************************/
+#ifndef __GNUC__
+ #define __attribute__(x)
+#endif
+
/* Print a parsing diagnostic to stderr */
void dmnsn_diagnostic(const char *filename, int line, int col,
- const char *format, ...);
+ const char *format, ...)
+ __attribute__ ((format (printf, 4, 5)));