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_ #ifndef ALLOY_ARENA_H_
#define ALLOY_ARENA_H_ #define ALLOY_ARENA_H_
#include <cstddef>
#include <cstdint> #include <cstdint>
namespace alloy { namespace alloy {

View File

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

View File

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

View File

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

View File

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

View File

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