diff options
author | nyamatongwe <devnull@localhost> | 2012-03-25 20:40:47 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-03-25 20:40:47 +1100 |
commit | ef17ad905b7fcdc361e17e59e929352377cb0768 (patch) | |
tree | 0fa700030a2021615efe9e86374bd54b474f5f3c | |
parent | a54e15f9554d35a41d904fd4799e7aecbcfc95af (diff) | |
download | scintilla-mirror-ef17ad905b7fcdc361e17e59e929352377cb0768.tar.gz |
Avoid warnings from example code.
-rw-r--r-- | test/examples/x.cxx | 2 | ||||
-rw-r--r-- | test/examples/x.cxx.styled | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/examples/x.cxx b/test/examples/x.cxx index 3c90b5e56..811a4034a 100644 --- a/test/examples/x.cxx +++ b/test/examples/x.cxx @@ -7,5 +7,5 @@ int main() { double x[] = {3.14159,6.02e23,1.6e-19,1.0+1}; int y[] = {75,0113,0x4b}; - printf("hello world %d\n", 9); + printf("hello world %d %g\n", y[0], x[0]); } diff --git a/test/examples/x.cxx.styled b/test/examples/x.cxx.styled index a2f33073b..ad259f893 100644 --- a/test/examples/x.cxx.styled +++ b/test/examples/x.cxx.styled @@ -7,5 +7,5 @@ {5}int{0} {11}main{10}(){0} {10}{{0} {11}double{0} {11}x{10}[]{0} {10}={0} {10}{{4}3.14159{10},{4}6.02e23{10},{4}1.6e-19{10},{4}1.0{10}+{4}1{10}};{0} {5}int{0} {11}y{10}[]{0} {10}={0} {10}{{4}75{10},{4}0113{10},{4}0x4b{10}};{0} - {11}printf{10}({6}"hello world %d\n"{10},{0} {4}9{10});{0} + {11}printf{10}({6}"hello world %d %g\n"{10},{0} {11}y{10}[{4}0{10}],{0} {11}x{10}[{4}0{10}]);{0} {10}}{0} |