diff options
author | Michael Chock <mchock@nvidia.com> | 2016-11-11 16:11:31 -0800 |
---|---|---|
committer | Pyry Haulos <phaulos@google.com> | 2016-11-14 12:15:06 -0400 |
commit | 141844f8ffaff15633b4764f8b564a05267a135d (patch) | |
tree | 6f6f95656a30081efc79ea2a7e3f665877838cb5 /framework | |
parent | 8bff020a8ad67867bfbe0d87adb624d1de2b56fc (diff) | |
download | VK-GL-CTS-141844f8ffaff15633b4764f8b564a05267a135d.tar.gz VK-GL-CTS-141844f8ffaff15633b4764f8b564a05267a135d.tar.bz2 VK-GL-CTS-141844f8ffaff15633b4764f8b564a05267a135d.zip |
Use conformant main() signature for CTS suite
C++ requires compilers to accept at least two signatures (3.6.1 in the
2014 and 2017 working drafts):
- a function of () returning int and
- a function of (int, pointer to pointer to char) returning int
There is no guarantee that a compiler will accept variations of argv
that use const. Use the second required form.
See #534.
Change-Id: I212b00e82b927fe25c5b2b20134db472c08e4c17
Diffstat (limited to 'framework')
-rw-r--r-- | framework/platform/tcuMain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/platform/tcuMain.cpp b/framework/platform/tcuMain.cpp index 58c92f3c4..5b0ccb023 100644 --- a/framework/platform/tcuMain.cpp +++ b/framework/platform/tcuMain.cpp @@ -34,7 +34,7 @@ // Implement this in your platform port. tcu::Platform* createPlatform (void); -int main (int argc, const char* argv[]) +int main (int argc, char** argv) { #if (DE_OS != DE_OS_WIN32) // Set stdout to line-buffered mode (will be fully buffered by default if stdout is pipe). |