Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hammer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sven M. Hallberg
hammer
Commits
65e688db
Commit
65e688db
authored
11 years ago
by
Dan Hirsch
Browse files
Options
Downloads
Patches
Plain Diff
Fixed clang implicit type cast warning
parent
2356276b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SConstruct
+7
-3
7 additions, 3 deletions
SConstruct
src/glue.h
+1
-1
1 addition, 1 deletion
src/glue.h
with
8 additions
and
4 deletions
SConstruct
+
7
−
3
View file @
65e688db
# -*- python -*-
import
os
env
=
Environment
()
env
.
MergeFlags
(
"
-std=gnu99 -Wall -Wextra -Werror -Wno-unused-parameter -Wno-attributes
"
)
env
[
'
MODE
'
]
=
'
shared
'
AddOption
(
"
--variant
"
,
dest
=
"
variant
"
,
...
...
@@ -24,9 +24,13 @@ if GetOption("variant") == 'debug':
env
=
dbg
else
:
env
=
opt
if
os
.
getenv
(
"
CC
"
)
==
"
clang
"
:
env
.
Replace
(
CC
=
"
clang
"
,
CXX
=
"
clang++
"
)
Export
(
'
env
'
)
env
.
SConscript
([
"
src/SConscript
"
],
variant_dir
=
'
build/$VARIANT/src
'
)
env
.
SConscript
([
"
examples/SConscript
"
],
variant_dir
=
'
build/$VARIANT/examples
'
)
env
.
Command
(
'
test
'
,
'
build/$VARIANT/src/test_suite
'
,
'
env LD_LIBRARY_PATH=build/$VARIANT/src $SOURCE
'
)
\ No newline at end of file
env
.
Command
(
'
test
'
,
'
build/$VARIANT/src/test_suite
'
,
'
env LD_LIBRARY_PATH=build/$VARIANT/src $SOURCE
'
)
This diff is collapsed.
Click to expand it.
src/glue.h
+
1
−
1
View file @
65e688db
...
...
@@ -182,7 +182,7 @@ HParsedToken *h_make_sint(HArena *arena, int64_t val);
HParsedToken
*
h_make_uint
(
HArena
*
arena
,
uint64_t
val
);
// Standard short-hands to make tokens in an action.
#define H_MAKE(TYP, VAL) h_make(p->arena, TT_ ## TYP, VAL)
#define H_MAKE(TYP, VAL) h_make(p->arena,
(HTokenType)
TT_ ## TYP, VAL)
#define H_MAKE_SEQ() h_make_seq(p->arena)
#define H_MAKE_SEQN(N) h_make_seqn(p->arena, N)
#define H_MAKE_BYTES(LEN) h_make_bytes(p->arena, LEN)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment