Cleaning up some clang issues.

This commit is contained in:
Ben Vanik 2014-08-21 22:27:33 -07:00
parent 9b76d02f26
commit f65d860640
6 changed files with 7 additions and 3 deletions

View File

@ -10,6 +10,7 @@
#ifndef ALLOY_ARENA_H_
#define ALLOY_ARENA_H_
#include <cstddef>
#include <cstdint>
namespace alloy {

View File

@ -13,6 +13,7 @@
#include <poly/assert.h>
#include <poly/math.h>
#include <xenia/profiling.h>
namespace alloy {
namespace backend {

View File

@ -10,6 +10,7 @@
#ifndef ALLOY_FRONTEND_CONTEXT_INFO_H_
#define ALLOY_FRONTEND_CONTEXT_INFO_H_
#include <cstddef>
#include <cstdint>
namespace alloy {

View File

@ -9,7 +9,7 @@
#include <alloy/runtime/debug_info.h>
#include <memory>
#include <cstdlib>
namespace alloy {
namespace runtime {

View File

@ -10,6 +10,7 @@
#ifndef ALLOY_RUNTIME_DEBUG_INFO_H_
#define ALLOY_RUNTIME_DEBUG_INFO_H_
#include <cstddef>
#include <cstdint>
namespace alloy {

View File

@ -79,7 +79,7 @@ void log_line(const char* file_path, const uint32_t line_number,
#if 0 // defined(OutputDebugString)
OutputDebugStringA(buffer);
#else
fprintf(stdout, buffer);
fprintf(stdout, "%s", buffer);
fflush(stdout);
#endif // OutputDebugString
if (!FLAGS_fast_stdout) {
@ -102,7 +102,7 @@ void handle_fatal(const char* file_path, const uint32_t line_number,
#if defined(OutputDebugString)
OutputDebugStringA(buffer);
#else
fprintf(stderr, buffer);
fprintf(stderr, "%s", buffer);
fflush(stderr);
#endif // OutputDebugString
if (!FLAGS_fast_stdout) {