Skip to content

Commit

Permalink
Fix numerous compiler warnings and errors
Browse files Browse the repository at this point in the history
Depending on OS and compiler, certain types may not be included
transitively by headers that were included previously. This commit
produces a clean build on the latest trunk versions of GCC, Clang,
and QT.
  • Loading branch information
jeremyong authored and baldurk committed Jan 16, 2020
1 parent 7076e67 commit 2940383
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions renderdoc/common/dds_readwrite.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#pragma once

#include <stdio.h>
#include "api/replay/data_types.h"

struct dds_data
Expand Down
1 change: 1 addition & 0 deletions renderdoc/core/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#pragma once

#include <stdint.h>
#include <stdio.h>
#include <map>
#include "api/app/renderdoc_app.h"
#include "api/replay/apidefs.h"
Expand Down
1 change: 1 addition & 0 deletions renderdoc/os/os_specific.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <functional>
#include "api/replay/rdcarray.h"
#include "api/replay/rdcpair.h"
Expand Down
1 change: 1 addition & 0 deletions renderdoc/os/posix/linux/linux_stringio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* THE SOFTWARE.
******************************************************************************/

#include <ctype.h>
#include <dlfcn.h>
#include <errno.h>
#include <iconv.h>
Expand Down
1 change: 1 addition & 0 deletions renderdoc/strings/utf8printf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* THE SOFTWARE.
******************************************************************************/

#include <wchar.h>
#include "common/common.h"
#include "os/os_specific.h"

Expand Down

0 comments on commit 2940383

Please sign in to comment.